Fiddly Feelings of the Forms in Laravel 5.2.45

To fill up the forms, you need to feel the forms first. Since laravel 5.2.45 this feeling is little bit different. It’s become little bit tricky.
You need to install HTML form builder so that you can use laravel form blade template and it’s really important for security reasons. But, there is a seize. Since laravel 5.2.45 the old trick will not work. You can no longer use ‘composer require illuminate/html’ command to add form builder templates to your project. Instead, you have to issue this command:

sudo composer require laravelcollective/html

It’ll take few minutes for composer to update your system. Next it’ll search for ‘providers’ and ‘aliases’. So you must open ‘Code/test/blog/config/app.php’ file and this line inside ‘providers’ array.


//Code/test/blog/config/app.php
'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        …
        'Collective\Html\HtmlServiceProvider',
…
        ],

Next you must add two lines between the ‘aliases’ array.


//Code/test/blog/config/app.php
'aliases' => [
…
        'Form' => 'Collective\Html\FormFacade',
        'Html' => 'Collective\Html\HtmlFacade',
        

    ],
…


Now you’re fully loaded to use the laravel form template.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s