FatalErrorException in ProviderRepository.php line 208: Class 'Illuminate\Html\HtmlServiceProvider' not found

Add this to your composer.json file:

"require": {
    "laravelcollective/html": "5.1.*"
}

Run composer update

Add the following to your providers array in config/app.php

'providers' => [
    Collective\Html\HtmlServiceProvider::class,
  ],

Add the aliases to the aliases array of config/app.php

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

Run composer dump-autoload -o


I got the same problem error but in my case it was

In ProviderRepository.php line 208:

  Class 'Unisharp\Laravelfilemanager\LaravelFilemanagerServiceProvider' not found


Script php artisan optimize handling the post-update-cmd event returned with error code 1

Though I tried and followed your(@Deathstorm) method but it did not work in my case so tried reinstalling the package as a whole and followed instruction from here now it works