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

Viewed 20570

i have just install Html package on laravel by composer require laravelcollective/html and then i run my code but it is not success , then i add

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

and

 Illuminate\Html\HtmlServiceProvider::class,

to app.php

then I again run

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

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

Issue is resolved by just follow these step.

Go to your project > bootstrap->cache->config.php remove the provider and aliases from the cached array manually.

Related