If you are getting the `HTML` or `FORM` class not found an error in your laravel 5 application then you are in the right place. You have this error because Laravel 5 version made changes in their library. However, you can solve this issue by using the “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 running the above command, You have to add provide the alias name on the app.php file. So let’s follow how you have to add.
return [ ..... 'providers' => [ .... 'Collective\Html\HtmlServiceProvider', ], 'aliases' => [ .... 'Form' => 'Collective\Html\FormFacade', 'HTML' => 'Collective\Html\HtmlFacade', ]
Hope this will resolve the issue, please leave a comment if you have any issue or you have learned something new.