【发布时间】:2015-11-23 20:47:00
【问题描述】:
我更新了composer.json 删除了Illumination\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
但我仍然收到错误消息。 非常感谢任何帮助:)
【问题讨论】:
标签: laravel laravel-5 laravel-5.1 laravelcollective