<?php12return [3/*4|--------------------------------------------------------------------------5| Stateful Domains6|--------------------------------------------------------------------------7|8| Requests from the following domains / hosts will receive stateful API9| authentication cookies. Typically, these should include your local10| and production domains which access your API via a frontend SPA.11|12*/1314'stateful' => explode(',', env('SANCTUM_STATEFUL_DOMAINS', sprintf(15'%s%s',16'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1',17Laravel\Sanctum\Sanctum::currentApplicationUrlWithPort()18))),1920/*21|--------------------------------------------------------------------------22| Sanctum Guards23|--------------------------------------------------------------------------24|25| This array contains the authentication guards that will be checked when26| Sanctum is trying to authenticate a request. If none of these guards27| are able to authenticate the request, Sanctum will use the bearer28| token that's present on an incoming request for authentication.29|30*/3132'guard' => ['web'],3334/*35|--------------------------------------------------------------------------36| Expiration Minutes37|--------------------------------------------------------------------------38|39| This value controls the number of minutes until an issued token will be40| considered expired. If this value is null, personal access tokens do41| not expire. This won't tweak the lifetime of first-party sessions.42|43*/4445'expiration' => null,4647/*48|--------------------------------------------------------------------------49| Sanctum Middleware50|--------------------------------------------------------------------------51|52| When authenticating your first-party SPA with Sanctum you may need to53| customize some of the middleware Sanctum uses while processing the54| request. You may change the middleware listed below as required.55|56*/5758'middleware' => [59'authenticate_session' => Laravel\Sanctum\Http\Middleware\AuthenticateSession::class,60'encrypt_cookies' => Pterodactyl\Http\Middleware\EncryptCookies::class,61'verify_csrf_token' => Pterodactyl\Http\Middleware\VerifyCsrfToken::class,62],63];646566