If you are getting `HTML` or `FORM` class not found error in your laravel 5 application then you are a right place. You have this error because Laravel 5 version made changes in their library. However you can solve this issue by using "laravelcollective/html" package. laravelcollective/html package will provide you HTML and FORM class helper.
So, let's run bellow command in your laravel 5 application
composer require laravelcollective/html
After run above command, You have to add provide the alias name on app.php file. So le's follow how you have to add.
config/app.php
return [
.....
'providers' => [
....
'Collective\Html\HtmlServiceProvider',
],
'aliases' => [
....
'Form' => 'Collective\Html\FormFacade',
'HTML' => 'Collective\Html\HtmlFacade',
]
Do you like below Tutorials ?
- PHP Laravel 5.5 - import export data into excel and csv using maatwebsite
- Laravel 7.x and 6.x create custom facade example from scratch
- Node JS - Get Real time online users counter using socket io example
- PHP Laravel 7.x and 6.x - Bootstrap Admin Theme Integration example from scratch
- MySQL Query - How to select records of today to next Sunday ?
- Laravel 7.x and 6.x - username custom validation example
- Laravel 5.5 - Import Extract zip file using chumper/zipper package
- PHP Laravel Set Custom Validation Error Messages Example