Tbaustin
Tbaustin

Reputation: 133

Class 'HTML' not found, I have tried everything

I have done the composer require illuminate\html and into my composer.json file it puts

 "illuminate/html|: "^5.0"

Then I went to the config/app.php file and added in the lines to the providers

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.

Upvotes: 0

Views: 127

Answers (1)

Joseph Silber
Joseph Silber

Reputation: 219920

Class names are case-sensitive. You registered the Html facade, but are using it as HTML.

Change one of them to match the other and you'll be fine.


P.S. You're aliasing the FormFacade twice. Be sure to correctly alias the HtmlFacade.

Upvotes: 3

Related Questions