session一直报错Session store not set on request
程序员文章站
2022-04-02 14:04:29
...
Route::group(['middleware' => ['web']], function () { // }); 仍然报错,看了 session是使用默认file,没问题;文件也是可写的,然后在
Kernel.php中添加了
protected $middleware = [ \Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode::class, \Illuminate\Session\Middleware\StartSession::class, \Illuminate\View\Middleware\ShareErrorsFromSession::class, ];
什么都没干就突然报如下的错误:
RuntimeException:Session store not set on request.
解决办法:
[php] view plain copy composer update
再运行试试看。
如果你是使用文件session 检查你storage 目录是否有写入权限 使用 database 检查有没有sessions表 使用memcache/redis 有没有启动memcached和redis 服务,已经有没有装相应拓展
以上就是session一直报错Session store not set on request的详细内容,更多请关注其它相关文章!
推荐阅读
-
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