Route::group(['middleware' => ['web']], function () {
//
});
仍然报错,看了 session是使用默认file,没问题;文件也是可写的,然后在Kernel.php中添加了 protected $middleware = [
IlluminateFoundationHttpMiddlewareCheckForMaintenanceMode::class,
IlluminateSessionMiddlewareStartSession::class,
IlluminateViewMiddlewareShareErrorsFromSession::class,
];什么都没干就突然报如下的错误: RuntimeException:Session store not set on request. 解决办法: 可能是你的一些组件需要了,试一下: [php] view plain copy
composer update 再运行试试看。 如果你是使用文件session 检查你storage 目录是否有写入权限
使用 database 检查有没有sessions表
使用memcache/redis 有没有启动和redis 服务,已经有没有装相应拓展 |