My SMM panel
Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.
 
 
 
 
 
 

51 рядки
1.7 KiB

  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Stateful Domains
  6. |--------------------------------------------------------------------------
  7. |
  8. | Requests from the following domains / hosts will receive stateful API
  9. | authentication cookies. Typically, these should include your local
  10. | and production domains which access your API via a frontend SPA.
  11. |
  12. */
  13. 'stateful' => explode(',', env(
  14. 'SANCTUM_STATEFUL_DOMAINS',
  15. 'localhost,localhost:3000,127.0.0.1,127.0.0.1:8000,::1,'.parse_url(env('APP_URL'), PHP_URL_HOST)
  16. )),
  17. /*
  18. |--------------------------------------------------------------------------
  19. | Expiration Minutes
  20. |--------------------------------------------------------------------------
  21. |
  22. | This value controls the number of minutes until an issued token will be
  23. | considered expired. If this value is null, personal access tokens do
  24. | not expire. This won't tweak the lifetime of first-party sessions.
  25. |
  26. */
  27. 'expiration' => null,
  28. /*
  29. |--------------------------------------------------------------------------
  30. | Sanctum Middleware
  31. |--------------------------------------------------------------------------
  32. |
  33. | When authenticating your first-party SPA with Sanctum you may need to
  34. | customize some of the middleware Sanctum uses while processing the
  35. | request. You may change the middleware listed below as required.
  36. |
  37. */
  38. 'middleware' => [
  39. 'verify_csrf_token' => App\Http\Middleware\VerifyCsrfToken::class,
  40. 'encrypt_cookies' => App\Http\Middleware\EncryptCookies::class,
  41. ],
  42. ];