Use form in Laravel 5.4 version using Blade
Use form in Laravel 5.4 using Blade: In this tutorial I will help you to use form in you Laravel 5 web application, using blade template. If you work in laravel, you know that it is the power full framework of PHP.
Many people have to faced in this problem –
Class ‘Form’ not found or Class ‘Collective\Html\HtmlServiceProvider’ not found
When you are using laravel 5 and using blade template in your project, then you have to add some features of laravel 5 helper. In this I am discussing about form error in laravel 5.4. So how to solve it, follow the steps:
At first open console and run it
composer require “laravelcollective/html”
Example:
C:\xampp\htdocs\mylaravel> composer require “laravelcollective/html” then enter and update the composer use this code.
Example:
C:\xampp\htdocs\mylaravel> composer update
Now add Collective\Html\HtmlServiceProvider::class, under the ‘providers’. First open the config folder and open the app.php file and add this thext. That’s like
Project Folder -> config -> app.php
'providers' => [ // ... Collective\Html\HtmlServiceProvider::class, // ... ],
Add ‘Form’ => Collective\Html\FormFacade::class, and ‘Html’ => Collective\Html\HtmlFacade::class, under the ‘aliases’. First open the config folder and open the app.php file and add this text under the ‘aliases’. That’s like
'aliases' => [ // ... 'Form' => Collective\Html\FormFacade::class, 'Html' => Collective\Html\HtmlFacade::class, // ... ],