FatalErrorException Class ‘Form’ not found in Laravel 5.2

By | May 10, 2016

Solutions for this Error as below

Please note Bold lines of codes we are adding extra in the below files.

step1: Open the composer.json file and edit the following lines of code.
“require”: {
“php”: “>=5.5.9”,
“laravel/framework”: “5.2.*”,
“laravelcollective/html”: “5.2.*”,

},

Step2:Open config/app.php file

‘providers’ => [ /*
* Laravel Framework Service Providers…
*/
Illuminate\Auth\AuthServiceProvider::class,

——
——

Collective\Html\HtmlServiceProvider::class,

Spep3:Open config/app.php file

‘aliases’ => [

‘App’ => Illuminate\Support\Facades\App::class,
—–
—-

‘Form’ => Collective\Html\FormFacade::class,
‘Html’ => Collective\Html\HtmlFacade::class,

Step 4: do composer update

  • It worked 🙂 I found osme stackoverflow posts but that didnt worked.