Laravel Collective

Laravel Collective is a helper Laravel framework which is built to help developers to handle class like form easier.

Pre-conditions : you should have a Laravel project up and running ( composer, php, environments... )

Locate your project's composer.json file and edit it to require laravelcollective/html such :

“require”:{
“laravelcollective/html”: “5.2.*”
}

Then install and update your composer with 2 terminal command respectively :

composer install
composer update

Next locate your config/app.php and add this :

'providers' => [
//..
Collective\Html\HtmlServiceProvider::class;
//…

],



And then within the same class, please add 2 class aliases to aliases array :

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



After doing so, you can use Laravel Collective class helper like Form.
If you liked this article

Let's subscribe the updates of Scuti!
Share on Google Plus

About Anonymous

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

2 Comments: