[英]Class 'HTML' not found, I have tried everything
I have done the composer require illuminate\\html
and into my composer.json
file it puts 我已经完成了composer require
illuminate\\html
并将其放入我的composer.json
文件中
"illuminate/html|: "^5.0"
Then I went to the config/app.php
file and added in the lines to the providers 然后我转到
config/app.php
文件,并将这些行添加到提供程序中
Illuminate\Html\HtmlServiceProvider::class,
and the aliases 和别名
'Form' => Illuminate\Html\FormFacade::class,
'Html' => Illuminate\Html\FormFacade::class
why am I still receiving class HTML not found. 为什么我仍然收到未找到的类HTML。
Class names are case-sensitive. 类名区分大小写。 You registered the
Html
facade, but are using it as HTML
. 您注册了
Html
门面,但是将其用作HTML
。
Change one of them to match the other and you'll be fine. 更改其中一个以匹配另一个,这样就可以了。
PS You're aliasing the FormFacade
twice. PS:您两次给
FormFacade
别名。 Be sure to correctly alias the HtmlFacade
. 确保正确别名
HtmlFacade
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.