PHP laravel api Session store not set on request.
API中间件 使用Request->session 出现 Session store not set on request. 解决方法如下
'api' => [
\App\Http\Middleware\EncryptCookies::class, // <------- 添加的代码
\Illuminate\Session\Middleware\StartSession::class, // <------ 添加的代码
'throttle:60,1',
'bindings',
],