我更新了composer.json
删除照亮\html并添加:
"require": {
"laravelcollective/html": "5.1.*"
我从中删除了提供者/别名app.php
对于 Illuminate\Html 并添加了替换项:
Collective\Html\HtmlServiceProvider::class,
...
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
然而跑步时composer update
我收到输出:
$ composer update
Loading composer repositories with package information
Updating dependencies (including require-dev)
- Removing illuminate/html (v5.0.0)
- Installing laravelcollective/html (v5.1.4)
Downloading: 100%
Writing lock file
Generating autoload files
> php artisan clear-compiled
PHP Fatal error: Class 'Illuminate\Html\HtmlServiceProvider' not found in vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 648
[Symfony\Component\Debug\Exception\FatalErrorException]
Class 'Illuminate\Html\HtmlServiceProvider' not found
Script php artisan clear-compiled handling the post-update-cmd event returned with an error
[RuntimeException]
Error Output: PHP Fatal error: Class 'Illuminate\Html\HtmlServiceProvider' not found in vendor/laravel/framework/src/Illuminate/Foundation/Application.php on line 648
我尝试更新composer.json
此处建议的脚本:https://github.com/LaravelCollective/html/issues/54 https://github.com/LaravelCollective/html/issues/54
但我仍然收到错误。
任何帮助是极大的赞赏 :)
最后,我设法通过 IRC 的一些帮助(感谢 sisve)和这些命令解决了这个问题。首先,我使用照亮/html 回滚到工作站点。然后:
composer dumpautoload
composer clearcache
php artisan clear-compiled
If the clear-compiled
失败,然后确保在中没有对 Illuminate\Html 的引用bootstrap/cache/config.php
并再次运行它。
删除所有对 Illuminate\Html 的引用config/app.php
去除illuminate/html
要求在composer.json
composer update
添加 laravelcollective/html 包,如下所述:http://laravelcollective.com/docs/5.1/html#installation http://laravelcollective.com/docs/5.1/html#installation
composer update
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)