我更新false
以删除照明\ html并添加:
composer.json
我从"require": {
"laravelcollective/html": "5.1.*"
删除了Illuminate \ Html的提供者/别名,并添加了替换内容:
app.php
...
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
脚本:https://github.com/LaravelCollective/html/issues/54
但我仍然收到错误。 非常感谢任何帮助:)
答案 0 :(得分:12)
最后,我设法通过IRC(感谢sisve)和这些命令提供了一些帮助。首先,我使用illuminate / html回滚到工作站点。然后:
composer dumpautoload
composer clearcache
php artisan clear-compiled
如果clear-compiled
失败,请确保bootstrap/cache/config.php
中没有对Illuminate \ Html的引用并再次运行。
删除config/app.php
中所有对Illuminate \ Html的引用
删除illuminate/html
composer.json
要求
composer update
按照此处所述添加laravelcollective / html包:http://laravelcollective.com/docs/5.1/html#installation
composer update