Laravel 6 Form class not found - Solved

Laravel 6 , Laravel

Nicesnippets

2099

19-09-2019


Hi Guys,

If you are looking for solution of form class not found in laravel 6 then i will help you how to solve 'Form' class not found error in laravel 6 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...


Recommended Posts