php - Understanding laravel 'auth' and 'web' middleware -


i have strange behavior on 1 of route groups have defined e.g

route::group(['prefix' => 'admin', 'middleware' => ['web','auth']], function (){   //admin routes  } ); 

whenever defined 'middleware' => ['web','auth'], routes accessible after login , without 'web' redirected / home.

what thought that , 'web' default middleware injected ,please correct me if wrong. otherwise there other setting affecting behavior ?

laravel comes web middleware groups contains common middleware may want apply web ui routes. web middleware group automatically applied default routes.php file routeserviceprovider.


Comments

Popular posts from this blog

ios - Is 'init' forbidden as *part* of a variable name? -

javascript - Why Selenium can't find an element that is graphically visible -

qt - Microsoft FTP Service 451 The parameter is incorrect -