Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save stevenspads/c80c6ceb9859e1440b010635b5427199 to your computer and use it in GitHub Desktop.
Save stevenspads/c80c6ceb9859e1440b010635b5427199 to your computer and use it in GitHub Desktop.
//1. Install the package using Composer. Edit your project's composer.json file to require laravelcollective/html.
"require": {
"laravelcollective/html": "5.2.*"
}
//2. Run "composer update" from the Terminal
//3. Add the new provider to the providers array in the file config/app.php:
'providers' => [
// ...
Collective\Html\HtmlServiceProvider::class,
// ...
],
//4. Add two class aliases to the aliases array in the file config/app.php:
'aliases' => [
// ...
'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,
// ...
],
//5. You can now use Form in your views.
{!! Form::open(...) !!}
{!! Form::close() !!}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment