Reputation: 23883
I'm using Laravel 5.6 for my project. The problem is I got an error message "Class 'HTML' not found"
when I include this tag in my form.
{{ HTML::ul($errors->all()) }}
I already included the "laravelcollective/html": "^5.4.0"
in my composer, config/app.php
and my controller.
Upvotes: 0
Views: 1909
Reputation: 487
Define Alias in app.php
'aliases' => [
// ...
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
// ...],
And use Html not HTML
Upvotes: 5