Laravel: Session store not set on request.

解决办法:
把以下代码添加到 app/Http/Kernel.php 中 api 中间件组中:

\App\Http\Middleware\EncryptCookies::class,          
 \Illuminate\Session\Middleware\StartSession::class,

Sea Bridge

古之立大志者,不惟有超世之才 亦必有坚韧不拔之志!

发表评论