user3494047
user3494047

Reputation: 1693

Updating Laravel from 5.1 to 5.2 composer error

I am trying to update from laravel 5.1 to 5.2 and I am getting a composer error:

Error Output: PHP Fatal error: Class 'Illuminate\Html\HtmlServiceProvider' not found in /my_app/vendor/laravel/framework/src/Illuminate/Founda tion/Application.php on line 648

This is after I followed the directions in the laravel update docs and also removed "illuminate/html": "^5.0@dev" from my composer.json and added "laravelcollective/html": "5.1.*" .

I did this because I was getting this error:

Error Output: PHP Fatal error: Call to undefined method Illuminate\Foundation\Application::bindShared() in /my_app/vendor/illuminate/html/HtmlSe rviceProvider.php on line 36

and was told that Illuminate htmlserivceprovider is deprecated here.

So now I am getting the new error mentioned above when trying to run composer update.

Does someone know what is causing this error?

Upvotes: 0

Views: 56

Answers (1)

user3494047
user3494047

Reputation: 1693

I rolled back to working version before update, made changes in composer.json to remove illuminate/html and add laravelcollective/html and ran composer update then made changes for updating to 5.2 then ran composer update and used "laravelcollective/html": "5.2.*" instead of "laravelcollective/html": "5.1.*" and now it works.

Upvotes: 0

Related Questions