Home Laravel HTML/FORM not found in Laravel ?

HTML/FORM not found in Laravel ?

by Shahriar Sagor

Now in this blog i will show you how to solve HTML/FORM not found problem in laravel. When we are want to use Form or Html class and then we are see an error as like ‘HTML’ class not found OR ‘Form’ class not found. So at that time don’t worry about that because in Laravel it change the package. So we should download the HTML and FORM class to helper from given instruction above.

So need to add given bellow text to our composer.json file.

"require": {
"laravel/framework": "5.0.*",
"laravelcollective/html": "~5.0"
},

OR

composer require laravelcollective/html

So after the fire composer update command After Update composer, we can open config/app.php and then we need add this line to the ‘providers’ array:

'Collective\Html\HtmlServiceProvider',

So on next, we need to add these lines to the ‘aliases’ array:

'FORM' => 'Collective\Html\FormFacade','HTML' => 'Collective\Html\HtmlFacade',

Read Also : How to count number of files in folder and remove all files in folder in laravel example?

Thanks for read this, I hope it will you. You can also follow us on Facebook.

close

You may also like