Undefined Namespace Html (adding A Css File To Blade) Laravel
I'm having trouble with importing a css style sheet located in public/css in a blade file located in resources/views/includes. The code I used in the blade file is {{ HTML::style('
Solution 1:
1:Remove "laravelcollective/html": "5.4.16"
in composer.json and clean other config for this package in config/app.php.
2:Run composer update
3:Run composer require laravelcollective/html
4:Add 'Collective\Html\HtmlServiceProvider::class',
in config/app.php (providers)
5:Add 'Form' => Collective\Html\FormFacade::class,
and 'Html' => Collective\Html\HtmlFacade::class,
in config/app.php (aliases)
6:In controller try use Html;
and use Form;
If you get any other error please share composer.json and config/app.php.
Post a Comment for "Undefined Namespace Html (adding A Css File To Blade) Laravel"