HTML/FORM not found in Laravel 5?

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


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.........



Hardik Savani
My name is Hardik Savani. I'm a full-stack developer, entrepreneur and owner of Aatman Infotech. I live in India and I love to write tutorials and tips that can help to other artisan. I am a big fan of PHP, Javascript, JQuery, Laravel, Codeigniter, VueJS, AngularJS and Bootstrap from the early stage.
Follow Me: Github Twitter
***Do you want me hire for your Project Work? Then Contact US.