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

前端 未结 12 1995
情话喂你
情话喂你 2020-11-30 04:31

I\'m trying to add the HtmlServiceProvider with Laravel 5.

I keep getting the following error:

FatalErrorException in compiled.php line 6391:

12条回答
  •  情深已故
    2020-11-30 05:32

    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',
    // ...
    

    ],

提交回复
热议问题