Laravel 5.2 : Web middleware is applied twice

落花浮王杯 提交于 2019-11-28 14:38:51

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.

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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!