我正在尝试在刀片模板 5.1 中使用 Html:: 类,我已经尝试了所有方法,在出现错误之前,class HTML not found
但是当我{{ !! HTML:: !!}}
在 html 之前使用时,错误现在FatalErrorException in 75e2b4fe5a49ad69bec8641db04b4b16 line 10:
syntax error, unexpected '!'
指导我请这里是代码
<li> {{ !! Html:: link_to_route('author',
$authorname->name, array($authorname->id)) !! }}</li>
Route: Route::get('authors/{id}', array('as' => 'author', 'uses' =>
'authors_controller@get_view'));
Composer.json: "require": {
"laravelcollective/html": "5.1.*"
},
app.php Providers: Collective\Html\HtmlServiceProvider::class,
app.php Aliases:
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
我已经使用了 composer update 命令或 composer requireIllumination/html 所有这些东西