session一直报错Session store not set on request
程序员文章站
2022-06-24 13:06:48
Route::group(['middleware' => ['web']], function () { //});仍然报错,看了 session是使用默认file,没问题;app/storage文件也是可写的,然后在 Kernel.php中添加了 protected $middleware = ......
Route::group(['middleware' => ['web']], function () {
//
});
仍然报错,看了 session是使用默认file,没问题;app/storage文件也是可写的,然后在
Kernel.php中添加了
protected $middleware = [
\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class,
\Illuminate\Session\Middleware\StartSession::class,
\Illuminate\View\Middleware\ShareErrorsFromSession::class,
];
下一篇: nodejs实现用户登录路由功能
推荐阅读
-
vps报错Unable to make the session state request
-
.NET CORE 使用Session报错:Session has not been configured for this application or request
-
session一直报错Session store not set on request
-
laravel 5.2使用session一直报错Session store not set on request
-
laravel 5.2使用session一直报错Session store not set on request
-
vps报错Unable to make the session state request
-
session一直报错Session store not set on request
-
.NET CORE 使用Session报错:Session has not been configured for this application or request
-
session一直报错Session store not set on request
-
session一直报错Session store not set on request