[], /* |-------------------------------------------------------------------------- | Sanctum Guards |-------------------------------------------------------------------------- | | Empty for the same reason, and it is the load-bearing half: with a guard | listed here, Sanctum answers an API request from whatever first-party | session it can find before it ever looks for a bearer token. Empty means | there is exactly one way to authenticate against /api/* — a token. | */ 'guard' => [], /* |-------------------------------------------------------------------------- | Expiration Minutes |-------------------------------------------------------------------------- | | Null on purpose: expiry is per token, not global. Every token is issued | with its own `expires_at` (required at creation, see ApiTokensController) | so a caller can choose a short-lived token without shortening everyone | else's. A value here would silently override those per-token dates. | */ 'expiration' => null, /* |-------------------------------------------------------------------------- | Token Prefix |-------------------------------------------------------------------------- | | A fixed, recognisable prefix so a leaked token is findable: GitHub's | secret scanning and most credential scanners key off exactly this kind | of marker, and it makes an accidentally-committed token greppable. | | Changing this does not invalidate existing tokens — the prefix is part | of the plaintext, not of the hash lookup. | */ 'token_prefix' => env('SANCTUM_TOKEN_PREFIX', 'psend_'), /* |-------------------------------------------------------------------------- | Sanctum Middleware |-------------------------------------------------------------------------- | | Unused while `stateful` is empty — kept at the package defaults so the | file still matches upstream if statefulness is ever reconsidered. | */ 'middleware' => [ 'authenticate_session' => AuthenticateSession::class, 'encrypt_cookies' => EncryptCookies::class, 'validate_csrf_token' => ValidateCsrfToken::class, ], ];