Laravel 5.* Form and HTML environment setup

  Laravel

Illuminate/HTML package has been deprecated

Do this:

In cmd run command:

composer require laravelcollective/html

In your composer.json file in “require” group should be added this line:

"laravelcollective/html": "5.2.*"

Update composer with command:

composer update

In config/app.php add this lines:

in providers group:

Collective\Html\HtmlServiceProvider::class,

in aliases group:

'Form' => Collective\Html\FormFacade::class,
'Html' => Collective\Html\HtmlFacade::class,

 

One Reply to “Laravel 5.* Form and HTML environment setup”

  • In latest laravel version 5.2.41, the middleware web is thrown out.

    Means adding the routes inside Route::group([‘middleware’ => [‘web’]], function () { will make the validation not work.

LEAVE A COMMENT