Solved - Laravel Form Class Not Found

10-Apr-2023

.

Admin

Hi Guys,

If you are looking for solution of form class not found in laravel then i will help you how to solve 'Form' class not found error in laravel application.

In this example,you will display to error the form class not found then laravel form package install in composer.you can simplay install form package in composer.

Solution for Laravel 6


Begin by installing this package through Composer. You have to run following command for install laravelcollective package.

composer require laravelcollective/html

Solution for Laravel 5.8

Begin by installing this package through Composer. You have to run following command for install laravelcollective package.

composer require laravelcollective/html

Solution for Laravel 5.7

Begin by installing this package through Composer. You have to run following command for install laravelcollective package.

composer require laravelcollective/html

Solution for Laravel 5.6

Begin by installing this package through Composer. You have to run following command for install laravelcollective package.

composer require "laravelcollective/html":"^5.8.0"

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,

// ...

],

It will help you...

#Laravel

#Laravel 6