Laravel 4 had a built-in HTML and form builder package called HTML but was removed from Laravel 5. However, you can install this package by following the steps given below.
Useful Read: How to get a random record from a table in Laravel
1. Add the HTML package:
This package can be installed to your Laravel application by simply requiring the package in your composer.json file.
2. Add service provider and aliases
To add the service providers and aliases open app.php file located inside your config directory and update the providers and aliases arrays.
'providers' => [ . . . . Collective\Html\HtmlServiceProvider::class, ], 'aliases' => [ . . . . 'Form' => Collective\Html\FormFacade::class, 'Html' => Collective\Html\HtmlFacade::class, ],
And we’re done. Now, you can use Form and HTML facades to build forms.