1

I could not find a resource to correct my error. In my view with the following snippet:

Html::link('http://test.com')

I get the Class 'Html' not found error. My laravel version is 5.5.21.

user2552863
  • 483
  • 3
  • 10
  • 18

1 Answers1

3

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

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,
]