Laravel 5 Class 'form' not found

Asked
Active3 hr before
Viewed126 times

7 Answers

class
90%

Meta Stack Overflow ,Stack Overflow en español,Stack Overflow em Português, Stack Overflow Public questions & answers

Begin by installing laravelcollective/html package through Composer. Edit your project's composer.json file to require:

"require": {
   "laravelcollective/html": "~5.0"
}

Next, update composer from the Terminal:

composer update

Next, add your new provider to the providers array of config/app.php:

'providers' => [
   // ...
   'Collective\Html\HtmlServiceProvider',
   // ...
],

Finally, add two class aliases to the aliases array of config/app.php:

'aliases' => [
   // ...
   'Form' => 'Collective\Html\FormFacade',
   'Html' => 'Collective\Html\HtmlFacade',
   // ...
],

In Laravel 5.8, the providers in the config/app.php can be declared as:

Collective\ Html\ HtmlServiceProvider::class,

instead of:

'Collective\Html\HtmlServiceProvider',
load more v
88%

1. Add illuminate/html to composer.json file:,Add illuminate/html to your composer.json and then run composer update,3. Open a config file config/app.php and add service providers and alias:, Povilas Korop October 9, 2015 at 7:42 am Add illuminate/html to your composer.json and then run composer update Reply

1. Add illuminate/html to composer.json file:

"require": {
   "php": ">=5.5.9",
   "laravel/framework": "5.1.*",
   "illuminate/html": "5.*"
},
load more v
72%

In laravel 7 does not support html package 5.x. you have to use 6.0. after laravel 5.8 you have to use latest version of html. ,"laravelcollective/html": "~6.0" ,composer require laravelcollective/html ,Using this command you can install latest and supported version of "laravelcollective html"

composer require laravelcollective / html
load more v
65%

Laravel , How to use Livewire in Laravel? ,PHP Laravel JQuery Form Validation Example,Laravel - Delete all records from table query

composer require "laravelcollective/html": "^5.5"
load more v
75%

In Laravel 5 earlier versions, Laravel Form builder was already installed, but on new Laravel versions it is not preinstalled. SO whenever you add Form builder in blade file, you will get error 'Class Form not found'.,To use Laravel Form builder first you have to install laravelcollective/html to project through Composer.,This will install Laravel Form builder package to use in blade file., HackTheStuff.com is a team of developers and designers working towards learning programming and design easy for the world.

Put the below lines in composer.json

"require": {
   "laravelcollective/html": "^6.0"
},
load more v
40%

Simple First Of all Add following Script code in your Laravel Root Folder Like composer.json file update.,And then fire composer update simple command And Update Your composer, Second Thing the Simple Open in Laravel Folder config/app.php on File.,Next, Put following line of Source code to service providers PHP array.,And then Last, Put following line of source code to aliases PHP array.

//update
"require": {
   "laravel/framework": "5.0.*",
   "laravelcollective/html": "~5.0"
},
load more v
22%

If you are fetch error class 'form' not found in laravel 6 then i will help you how to solve form class not found error in laravel 6. i will give you solution for laravel 6, laravel 5.8, laravel 5.7, laravel 5.6 and laravel 5.5 using laravelcollective/html package., 'Form' => Collective\Html\FormFacade::class,,Sometime you just copy and paste some other project code then you will found this types of error because of you forgot to use laravelcollective/html composer package that other guys used. But i will help you how to solve this error in laravel 6.,laravelcollective/html is provide very easy way to use html textbox, select box, radio button, checkbox etc with laravel. They provide several method to use those input fields. I will also suggest to use form class in your project because it helps to quick code.

composer require laravelcollective / html
load more v

Other "class-undefined" queries related to "Laravel 5 Class 'form' not found"