I am building a single page application (SPA), I have followed the Laravel official document to use Fortify with Sanctum.
From the "SPA Authentication" section on sanctum page (https://laravel.com/docs/8.x/sanctum)
For a SAP, I need to use 'web' for "guard" attribute, but it didn't mention what is the proper value for "middleware" attribute?
And because it instructs you to add \Laravel\Sanctum\Http\Middleware\EnsureFrontendRequestsAreStateful::class to the api middleware group within app/Http/Kernel.php file.
So I assume I should use ['api'] for the middleware? What is the proper value for a SPA?