Reputation: 238
I have been trying to move my laravel app to production. I following below steps
1. git clone
2. composer install
3. set env variables
4. (artisan key:generate)
5. artisan migrate --seed
But when i ran composer install, am getting the following error
Class 'Collective\Html\HtmlServiceProvider' not found in vendor/laravel/framework/src/Illuminate/Foundation/ProviderRepository.php on line 146
I know this error means, laravelcollective not added in composer.json and need to following steps as mentioned here
But i already have done the same thing in dev mode and now the composer.json has require "laravelcollective" and aliases in config/app.php.
My question is, do i need to the same thing what i have done in dev (resolving laravelcollective issue) for every new production instance that i am gonna set it up ?
Upvotes: 1
Views: 263
Reputation: 7618
Try:
composer install --no-scripts
this should install all the dependencies without problem
Upvotes: 0
Reputation: 1412
update it in your composer.json file.
"require": {
"php": ">=5.5.9",
"laravel/framework": "5.1.*",
"laravelcollective/html": "5.1.*"
},
then in run command 'composer update' after it add dependancy in you app/config/app.php file..
Upvotes: 0
Reputation: 5135
if your project working fine locally, then you have to Run composer update
commend under your project repo. did you uploaded vender folder?
Also try to upload(only) vender/composer
folder into your vender, and then try to run
composer installor
update` command
Upvotes: 0