Support the ongoing development of Laravel.io →
Views Blade Packages
Last updated 2 years ago.
0

you are using package laravel/collective" ? if yes check your facades/alias class in app.php or another options is you can just using asset() helper method link

0

Also make sure you have the alias as "Html" and not as "HTML" (which I believe is the default). If that is the case make sure you use "HTML" instead of "Html" in your views.

0

Html is a facade/alias from laravel/collective package.

To install it, got to shell and type: (Laravel 5.4)

composer require "laravelcollective/html":"^5.4.0"

Then, add the provider to the providers array of config/app.php:

Collective\Html\HtmlServiceProvider::class,

Finally, add to the aliases array of config/app.php:

'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,

More info here

Last updated 7 years ago.
0

Anybody who are using laravel 5.* have to use laravelcollective/html because Package illuminate/html is abandoned, you should avoid using it.

your composer.json file should contain following code in require section(as i am using laravel 5.2 it will be mentioned as 5.2

"laravelcollective/html": "5.2.*"

run composer update

and your config/app.php should contain following code in providers array

'providers' =>

[
                       Collective\Html\HtmlServiceProvider::class,
 
]
and aliases should contain
 
'aliases' => [
 
                'Form' => Collective\Html\FormFacade::class,
                'HTML' => Collective\Html\HtmlFacade::class,
]
 
0

Its not compatible with current version 5.4.27 now im a i am using the classic html. Thanks for your responses

0

Sign in to participate in this thread!

Eventy

Your banner here too?

BarthFox barthfox Joined 16 Jun 2017

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.