Class form or html not found in Laravel 5 – onlinecode
In this post we will give you information about Class form or html not found in Laravel 5 – onlinecode. Hear we will give you detail about Class form or html not found in Laravel 5 – onlinecodeAnd how to use it also give you demo for it if it is necessary.
Sometime you use Form or HTML class in your laravel project you will get error like ‘HTML’ or ‘FORM’ class not found.
You are getting error because Laravel 5 made changes in their library.
You should download HTML and FORM class helper using composer.
Add following code in your composer.json file.
"require": {
"laravel/framework": "5.0.*",
"laravelcollective/html": "~5.0"
},
OR
composer require laravelcollective/html
After running this command, Composer will load the HTML and FORM class, you just provide the alias name.
Openconfig/app.php and add this line to service providers array:
'CollectiveHtmlHtmlServiceProvider',
Next, add following line of code to aliases array.
'Form' => 'CollectiveHtmlFormFacade','HTML' => 'CollectiveHtmlHtmlFacade',
Label :
PHP
Laravel PHP Framework
Hope this code and post will helped you for implement Class form or html not found in Laravel 5 – onlinecode. if you need any help or any feedback give it in comment section or you have good idea about this post you can give it comment section. Your comment will help us for help you more and improve us. we will give you this type of more interesting post in featured also so, For more interesting post and code Keep reading our blogs