Showing posts with label PHP. Show all posts
Showing posts with label PHP. Show all posts

Monday, August 24, 2015

Class Form not found

Begin by installing this package through Composer. Edit your project's composer.json file to require laravelcollective/html.
"require": {
    "laravelcollective/html": "5.1.*"
}

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::class,
    // ...
  ],

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

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