简体   繁体   English

找不到类“ HTML”,我已经尝试了所有方法

[英]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.

相关问题 我试图两次获得相同的html元素,并且我调用了相同的php类以将其返回,但是这是不同的 - I have tried to get the same html element twice and i called the same php class to return it,but it is different 我尝试使用user_type模型registerusers.php我找不到Class'app \\ user_type' - user_type model when I tried to use it registerusers.php I have Class 'app\user_type' not found 我已经尝试了所有方法,每种技术,但无法从xampp服务器发送gmail? - I have tried everything , every technique , but i am unable to send gmail from my xampp server? 尝试了我在堆栈上找到的所有内容,但没有任何效果可以修改我的数组 php - Tried everything I found on stack but nothing worked to modify my array php 我只是不能扩展Symfony2 Form类。 尝试了一切 - I just can't extend the Symfony2 Form class. Tried everything MethodNotAllowedHttpException出现,我已经尝试了一切 - MethodNotAllowedHttpException appearing and I've tried everything 宅基:找不到命令-Windows 10-尝试了一切 - Homestead: command not found- Windows 10 - Tried everything 我有一个两次触发的ajax调用(jQuery),并尝试了此处找到的解决方案,但没有任何效果 - I have an ajax call firing twice (jQuery) and have tried the solutions found here and nothing has worked PHP Caching使我的网站停止显示实际文件,而是显示旧文件。 我已经尝试了一切,但没有任何效果 - PHP Caching stops my website from showing the actual files, and instead shows old files. I have tried everything and nothing works 网站自发地以403启动失败,尝试了“一切*” - Site spontaneously started failing with 403 on POST, have tried 'EVERYTHING*'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM