Class 'Illuminate\Html\HtmlServiceProvider' not found Laravel 5

First add this line to composer.json

"illuminate/html": "~5.0"

Then do a composer update Wait for the update to finish, then open config/app.php add this:

'Illuminate\Html\HtmlServiceProvider', 

to the providers array and this:

'Form'      => 'Illuminate\Html\FormFacade',
'Html'      => 'Illuminate\Html\HtmlFacade',

to the aliases array, and be sure when you use Html in blade or wherever use it in lowercase 'Html' not HTML

Here is a reference link: http://thegeekyland.blogspot.com/2015/11/class-illuminatehtmlhtmlserviceprovider.html


Illuminate\Html\HtmlServiceProvider is not a core element anymore. Laravel components that have been removed from the core framework are available on laravelcollective.com your html & forms components can be found here:

http://laravelcollective.com/docs/5.0/html

add this to your composer.json :

"laravelcollective/html": "~5.0"

then update composer:

composer update

then add providers in config/app.php

'Collective\Html\HtmlServiceProvider',

and finally add two aliases in the same file:

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

Illuminate/HTML package has been deprecated

Use:laravelcollective/html

https://stackoverflow.com/a/34991188/3327198

composer require laravelcollective/html

Add this lines in config/app.php

in providers group:

Collective\Html\HtmlServiceProvider::class,

in aliases group:

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

Try the following steps Edit your project's composer.json file.

"require": {
"laravelcollective/html": "~5.0"

}

Next, update Composer from the Terminal:

composer update

Next, add your new provider to the providers array of config/app.php:

'providers' => [ // ... 'Collective\Html\HtmlServiceProvider', // ... ],

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

'aliases' => [
// ...
  'Form' => 'Collective\Html\FormFacade',
  'Html' => 'Collective\Html\HtmlFacade',
// ...

],