Created
July 22, 2016 00:57
-
-
Save stevenspads/c80c6ceb9859e1440b010635b5427199 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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