【发布时间】:2017-11-07 20:53:53
【问题描述】:
我目前安装了 laravel 并尝试创建我的第一个应用程序,但是当我需要 laravel 集体时,我得到了上面的错误。
这是我的 composer.json
{
"require": {
"laravel/installer": "~1.1",
"laravelcollective/html": "5.1.*"
}
}
我的 app.php 有这些行.. 提供者=>
...Illuminate\Validation\ValidationServiceProvider::class,
Illuminate\View\ViewServiceProvider::class,
Collective\Html\HtmlServiceProvider::class,
别名=>
...'Validator' => Illuminate\Support\Facades\Validator::class,
'View' => Illuminate\Support\Facades\View::class,
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
我一直在阅读和寻找解决方案,但目前它们从未对我有用.. 任何帮助将不胜感激.. 提前致谢..
【问题讨论】:
-
安装
laravelcollective的步骤是什么? -
@james 我按照这里的文档laravelcollective.com/docs/5.0/html
-
所以在将那行添加到您的
composer.json之后,您肯定运行了composer update? -
是的,我也尝试了不同的版本,如~5.0、5.1.*,然后在编辑 composer.json 后进行作曲家更新。
标签: laravel-5.1 laravelcollective