Class Form not found in Laravel 5

  • Posted on: 30 April 2019
  • By: stillfinder

If you are getting "Class Form not found" when trying to use something like that {{ Form::open(['route' => ['feedback']]) }}, the solution below should help to fix the issue:

Add below code in "require" section of composer.json:
"laravelcollective/html": "~5.0"

Run from the terminal:
composer update

Add to the config/app.php providers array:

Add to the config/app.php aliases array:

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