Laravel 5 Class 'form' not found
This may not be the answer you're looking for, but I'd recommend using the now community maintained repository Laravel Collective Forms & HTML as the main repositories have been deprecated.
Laravel Collective is in the process of updating their website. You may view the documentation on GitHub if needed.
Laravel 5.4 Class 'form' not found
Looks like you set the alias for your Form Class to "FORM" here in your app.php:
'FORM' => 'Collective\Html\FormFacade',
Try changing that to Form
like so:
'Form' => 'Collective\Html\FormFacade',
then it should work
Class 'Form' not found in Laravel 7
To support Laravel
7.x
, you will need to install version 6.0
of the HTML package. 5.x
Does not support newer versions of Laravel
after 5.8
. Update your composer.json
.
"laravelcollective/html": "~6.0"
After that run.
composer install
Or simply require it from the command line.
composer require laravelcollective/html "~6.0"
Class 'Form' not found in Laravel 5.3?
Its called the Laravel Collective package and It has been removed from laravel defaults.
You can still integrate and use it.
here is the documentation
Laravel Collective
How to Install
composer require "laravelcollective/html":"^5.3.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,
// ...
],
Laravel5- Class 'Form' not found
Install and configure https://laravelcollective.com/docs/5.2/html. Don't forget to add the form alias.
Laravel 6: Class 'Form' not found
First to install laravelcollective
run this composer command composer require laravelcollective/html
or from your composer file in the require
object
"require": {
"php": "^7.2",
"fideloper/proxy": "^4.0",
"laravel/framework": "^6.0",
"laravel/tinker": "^1.0",
"laravelcollective/html": "^6.0"
},
it should be "laravelcollective/html": "^6.0"
not "laravelcollective/html": "~6.0"
and here is the new docs for laravel v6.0 link
last thing: you don't need any more to include the package providers and aliases manually it will be added automatically
Related Topics
Autoload Classes from Different Folders
Getting Last Month's Date in PHP
How to Convert a String to JSON Object in PHP
Set Session in Database in PHP
Symfony2, Dynamic Db Connection/Early Override of Doctrine Service
Looping Through All the Properties of Object PHP
PHP Access Network Path Under Windows
PHP Error: Function Name Must Be a String
How Follow the Don't Repeat Yourself Principle When Consuming My Own Laravel API
How to Switch from Post to Get in PHP Curl
Include Files from Parent or Other Directory
When *Not* to Use Prepared Statements
Publishing to User's Wall Without Being Online/Logged-In - Facebook Sharing Using Graph API
PHP Variable Interpolation VS Concatenation