Laravel 5 Class 'Collective\Html\HtmlServiceProvider' not found on AWS
I have encountered the same error on Laravel 5.2.*, followed instruction here: https://laravelcollective.com/docs/5.2/html, but did not work.
The other way to fix it, on your CLI, run:
$ composer dump-autoload
Then run:
$ composer update
This works for me. ;)
When you update your composer it will check the providers. Because you haven't installed laravelcollective/html
yet he can't find it and throws an error:
So first require your packeges, then add them to the config file.
You can also work with composer require laravelcollective/html
, it will add it to the json file automatically. Then it doesn't matter if you have added them before or not because the config file won't be checked.