Laravel 5 未找到表单致命错误
Laravel 5 Form not found fatal error
我已完成以下过程来解决错误。
-我已将 "illuminate/html": "5.*" 添加到 composer.json 和 运行 "composer update"
-我在 config/app.php 中添加了以下内容
'Illuminate\Html\HtmlServiceProvider'、
'Form' => 'Illuminate\Html\FormFacade',
'Html' => 'Illuminate\Html\HtmlFacade',
- 但我的整个项目不是 working.Not running.It 似乎是作曲家的问题。
请帮忙
如果我是正确的,laravel 5 不再支持 illuminate/html
包。在 laravelcollective/html
有一个社区分支,请参阅他们的 site 以获取所有文档。
您可以将 illuminate 包替换为 laravelcollective 包:
添加到您的 composer.json:
"require": {
"laravelcollective/html": "5.1.*"
}
将提供程序添加到 config/app 的提供程序数组。php:
'providers' => [
Collective\Html\HtmlServiceProvider::class,
],
向config/app的别名数组添加两个class别名。php:
'aliases' => [
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
],
我已完成以下过程来解决错误。
-我已将 "illuminate/html": "5.*" 添加到 composer.json 和 运行 "composer update" -我在 config/app.php 中添加了以下内容 'Illuminate\Html\HtmlServiceProvider'、
'Form' => 'Illuminate\Html\FormFacade',
'Html' => 'Illuminate\Html\HtmlFacade',
- 但我的整个项目不是 working.Not running.It 似乎是作曲家的问题。 请帮忙
如果我是正确的,laravel 5 不再支持 illuminate/html
包。在 laravelcollective/html
有一个社区分支,请参阅他们的 site 以获取所有文档。
您可以将 illuminate 包替换为 laravelcollective 包:
添加到您的 composer.json:
"require": {
"laravelcollective/html": "5.1.*"
}
将提供程序添加到 config/app 的提供程序数组。php:
'providers' => [
Collective\Html\HtmlServiceProvider::class,
],
向config/app的别名数组添加两个class别名。php:
'aliases' => [
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
],