Routes in Laravel

1

Route::group(['prefix' => 'painel', 'middleware' => 'auth'], function() {
    //
}
    
asked by anonymous 27.10.2016 / 18:45

1 answer

1

It is not necessarily the auth middleware that automatically implements the web. In fact, at least in laravel 5.2, according to the documentation the web middleware is automatically implemented in the routes.php file by the RouteServiceProvider.

  

Keep in mind, the web middleware group is automatically applied to your default routes.php file by the RouteServiceProvider.

link

    
27.10.2016 / 19:22