1
votes

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 ?

3
@oseintow, instead of composer install ?. tried instead of composer install, but getting the error. I think composer install only need to be run, then only it can create .env file.sarav

3 Answers

0
votes

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 runcomposer installorupdate` command

0
votes

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..

0
votes

Try:

composer install --no-scripts

this should install all the dependencies without problem