Switching from Illuminate\\Html to Collective\\Html, Class 'Illuminate\\Html\\HtmlServiceProvider' not found

喜你入骨 提交于 2019-12-03 14:02:58

In the end I managed to fix this with some help on IRC (thanks sisve) and these commands. First I rolled back to a working site with illuminate/html. Then:

composer dumpautoload
composer clearcache
php artisan clear-compiled

If the clear-compiled fails then make sure there are no references to Illuminate\Html in bootstrap/cache/config.php and run it again.

Remove all references to Illuminate\Html in config/app.php
Remove the illuminate/html require in composer.json

composer update

Add the laravelcollective/html package as described here: http://laravelcollective.com/docs/5.1/html#installation

composer update
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!