1
When prefixing the middleware auth, as below, I am automatically implementing also middleware web?
Route::group(['prefix' => 'painel', 'middleware' => 'auth'], function() {
//
}
1
When prefixing the middleware auth, as below, I am automatically implementing also middleware web?
Route::group(['prefix' => 'painel', 'middleware' => 'auth'], function() {
//
}
1
It is not necessarily middleware auth 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 Routeserviceprovider.
Keep in Mind, the web middleware group is Automatically Applied to your default Routes.php file by the Routeserviceprovider.
Browser other questions tagged laravel
You are not signed in. Login or sign up in order to post.
web php. is the route, right? Not a Middleware
– Diego Souza
we actually have several middleware or middleware groups, one of which is the web as can be verified in the Kernel.php file, my question is, when applying auth I also have to apply middlewareGroups web?
– Fábio Jânio