Laravel 5.2 : Web middleware is applied twice

前端 未结 2 657
长发绾君心
长发绾君心 2020-12-12 04:30

Here is my routes.php code

    Route::auth();

    Route::group([\'middleware\' => \'web\'], function () {
Route::group([\'namespace\' => \'Admin\', \         


        
2条回答
  •  半阙折子戏
    2020-12-12 05:15

    Changes are made to always invoke the web middleware in a RouteServiceProvider so no need to specify it in routes.php going forward.

    Updated Documentation says:

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

提交回复
热议问题