You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

133 lines
4.2 KiB

1 month ago
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Authentication Defaults
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option controls the default authentication "guard" and password
  9. | reset options for your application. You may change these defaults
  10. | as required, but they're a perfect start for most applications.
  11. |
  12. */
  13. 'defaults' => [
  14. 'guard' => 'api',
  15. 'passwords' => 'users',
  16. ],
  17. /*
  18. |--------------------------------------------------------------------------
  19. | Authentication Guards
  20. |--------------------------------------------------------------------------
  21. |
  22. | Next, you may define every authentication guard for your application.
  23. | Of course, a great default configuration has been defined for you
  24. | here which uses session storage and the Eloquent user provider.
  25. |
  26. | All authentication drivers have a user provider. This defines how the
  27. | users are actually retrieved out of your database or other storage
  28. | mechanisms used by this application to persist your user's data.
  29. |
  30. | Supported: "session", "token"
  31. |
  32. */
  33. 'guards' => [
  34. 'web' => [
  35. 'driver' => 'session',
  36. 'provider' => 'users',
  37. ],
  38. 'api' => [
  39. 'driver' => 'sanctum',
  40. 'provider' => 'users',
  41. ],
  42. 'sanctum' => [
  43. 'driver' => 'sanctum',
  44. 'provider' => 'users',
  45. ],
  46. ],
  47. /*
  48. |--------------------------------------------------------------------------
  49. | User Providers
  50. |--------------------------------------------------------------------------
  51. |
  52. | All authentication drivers have a user provider. This defines how the
  53. | users are actually retrieved out of your database or other storage
  54. | mechanisms used by this application to persist your user's data.
  55. |
  56. | If you have multiple user tables or models you may configure multiple
  57. | sources which represent each model / table. These sources may then
  58. | be assigned to any extra authentication guards you have defined.
  59. |
  60. | Supported: "database", "eloquent"
  61. |
  62. */
  63. 'providers' => [
  64. 'users' => [
  65. 'driver' => 'eloquent',
  66. 'model' => \Marvel\Database\Models\User::class,
  67. ],
  68. // 'users' => [
  69. // 'driver' => 'database',
  70. // 'table' => 'users',
  71. // ],
  72. ],
  73. /*
  74. |--------------------------------------------------------------------------
  75. | Resetting Passwords
  76. |--------------------------------------------------------------------------
  77. |
  78. | You may specify multiple password reset configurations if you have more
  79. | than one user table or model in the application and you want to have
  80. | separate password reset settings based on the specific user types.
  81. |
  82. | The expire time is the number of minutes that the reset token should be
  83. | considered valid. This security feature keeps tokens short-lived so
  84. | they have less time to be guessed. You may change this as needed.
  85. |
  86. */
  87. 'passwords' => [
  88. 'users' => [
  89. 'provider' => 'users',
  90. 'table' => 'password_resets',
  91. 'expire' => 60,
  92. 'throttle' => 60,
  93. ],
  94. ],
  95. /*
  96. |--------------------------------------------------------------------------
  97. | Password Confirmation Timeout
  98. |--------------------------------------------------------------------------
  99. |
  100. | Here you may define the amount of seconds before a password confirmation
  101. | times out and the user is prompted to re-enter their password via the
  102. | confirmation screen. By default, the timeout lasts for three hours.
  103. |
  104. */
  105. 'password_timeout' => 10800,
  106. /*
  107. |--------------------------------------------------------------------------
  108. | Active OTP Gateway
  109. |--------------------------------------------------------------------------
  110. |
  111. | Here active otp gateway value will be taken form the environment variables.
  112. | values can be 'twilio'|'messagebird'
  113. |
  114. */
  115. 'active_otp_gateway' => env('ACTIVE_OTP_GATEWAY', 'twilio'),
  116. ];