Laravel 5.2 : Web middleware is applied twice

前端 未结 2 646
长发绾君心
长发绾君心 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.

    0 讨论(0)
  • 2020-12-12 05:15

    NOW the "web" middleware group is applied to default. Delete this Route::group(['middleware' => 'web'] from you file route.php

    0 讨论(0)
提交回复
热议问题