sarav
sarav

Reputation: 238

Laravel 5.2: While moving to production, class "Collective\Html\HtmlServiceProvider" not found in vendor folder

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

Answers (3)

Christian Giupponi
Christian Giupponi

Reputation: 7618

Try:

composer install --no-scripts

this should install all the dependencies without problem

Upvotes: 0

Gautam Patadiya
Gautam Patadiya

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

Qazi
Qazi

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

Upvotes: 0

Related Questions