345   Composer Laravel PHP

1, download Form package throw composer , run the command

composer require "laravelcollective/html:5.1.*"

Then you can see laravelcollective in the vendor floder

2, auto this package by provider and Facades , edit ‘config/app.php’ , add something like that

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

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

3, perfect ! you can use Form::open or Form::close in your views now !




Leave a Reply

Your email address will not be published. Required fields are marked *