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
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.
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
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,
]
Its not compatible with current version 5.4.27 now im a i am using the classic html. Thanks for your responses
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community