📅  最后修改于: 2022-03-11 14:53:44.797000             🧑  作者: Mango
// open "app/Http/Kernal.php"
// in "protected $middlewareGroups"
// in "api"
// uncomment this class:
\Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class