Solved - Laravel Form Class Not Found
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...
- How to Notifications With database Driver in Laravel 11?
- How to Send Email Via Notification in Laravel 11?
- How to Install and Configure Laravel 11 Debugbar?
- How to Like Dislike System in Laravel 11?
- How to Paginate a Model with Relationship in Laravel 11?
- Laravel 11 Upload Files to Amazon S3 Example
- Laravel 11 Send WhatsApp Messages Example
- Laravel 11 Rest API Authentication Using JWT Tutorial