Merge branch '10.x'

This commit is contained in:
Taylor Otwell 2023-09-13 16:03:34 -05:00
commit 8dc6ced55b
1 changed files with 19 additions and 3 deletions

View File

@ -41,13 +41,28 @@
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| |
| This value controls the number of minutes until an issued token will be | This value controls the number of minutes until an issued token will be
| considered expired. If this value is null, personal access tokens do | considered expired. This will override any values set in the token's
| not expire. This won't tweak the lifetime of first-party sessions. | "expires_at" attribute, but first-party sessions are not affected.
| |
*/ */
'expiration' => null, 'expiration' => null,
/*
|--------------------------------------------------------------------------
| Token Prefix
|--------------------------------------------------------------------------
|
| Sanctum can prefix new tokens in order to take advantage of various
| security scanning initiaives maintained by open source platforms
| that alert developers if they commit tokens into repositories.
|
| See: https://docs.github.com/en/code-security/secret-scanning/about-secret-scanning
|
*/
'token_prefix' => env('SANCTUM_TOKEN_PREFIX', ''),
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
| Sanctum Middleware | Sanctum Middleware
@ -60,8 +75,9 @@
*/ */
'middleware' => [ 'middleware' => [
'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class, 'authenticate_session' => Laravel\Sanctum\Http\Middleware\AuthenticateSession::class,
'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class, 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class,
'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class,
], ],
]; ];