HTML/FORM not found in Laravel 5?

By Hardik Savani | January 27, 2016 | | 25283 Viewer | Category : Laravel


Share this post:

If you want to use Form or Html class and when you will see error like ‘HTML’ class not found OR ‘Form’ class not found. don’t worry about that because Laravel 5 change the package. you should download the HTML and FORM class helper from given instruction above.

Add given bellow text to your composer.json file.

"require": {

"laravel/framework": "5.0.*",

"laravelcollective/html": "~5.0"

},

OR

composer require laravelcollective/html

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

'Collective\Html\HtmlServiceProvider',

Next, add these lines to the ‘aliases’ array:

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

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

Try this.........