Laravel

HTML and Form Builder

Installation

HTML and Form Builder is not a core component since Laravel 5, so we need to install it separately:

composer require laravelcollective/html "~5.0"

Finally in config/app.php we need to register the service provider, and the facades aliases like this:

'providers' => [
    // ...
    Collective\Html\HtmlServiceProvider::class,        
    // ...
],

'aliases' => [
   // ...
  'Form' => Collective\Html\FormFacade::class,
  'Html' => Collective\Html\HtmlFacade::class,
   // ...
],

Full docs are available on Forms & HTML


This modified text is an extract of the original Stack Overflow Documentation created by the contributors and released under CC BY-SA 3.0 This website is not affiliated with Stack Overflow