更新时间:2023-11-17 18:21:58
首先将此行添加到 composer.json
First add this line to composer.json
"illuminate/html": "~5.0"
然后做一个composer update
等待更新完成,然后打开 config/app.php 添加:
Then do a composer update
Wait for the update to finish, then open config/app.php add this:
'IlluminateHtmlHtmlServiceProvider',
到 providers
数组和这个:
'Form' => 'IlluminateHtmlFormFacade',
'Html' => 'IlluminateHtmlHtmlFacade',
到 aliases
数组,并确保在刀片中使用 Html 或在任何地方使用小写的Html"而不是 HTML
to the aliases
array, and be sure when you use Html in blade or wherever use it in lowercase 'Html' not HTML
这是一个参考链接:http://thegeekyland.blogspot.com/2015/11/class-illuminatehtmlhtmlserviceprovider.html