auth.php 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Authentication Defaults
  6. |--------------------------------------------------------------------------
  7. |
  8. | This option defines the default authentication "guard" and password
  9. | reset "broker" for your application. You may change these values
  10. | as required, but they're a perfect start for most applications.
  11. |
  12. */
  13. 'defaults' => [
  14. 'guard' => env('AUTH_GUARD', 'web'),
  15. 'passwords' => env('AUTH_PASSWORD_BROKER', '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. | which utilizes session storage plus the Eloquent user provider.
  25. |
  26. | All authentication guards have a user provider, which defines how the
  27. | users are actually retrieved out of your database or other storage
  28. | system used by the application. Typically, Eloquent is utilized.
  29. |
  30. | Supported: "session"
  31. |
  32. */
  33. 'guards' => [
  34. 'web' => [
  35. 'driver' => 'session',
  36. 'provider' => 'users',
  37. ],
  38. ],
  39. /*
  40. |--------------------------------------------------------------------------
  41. | User Providers
  42. |--------------------------------------------------------------------------
  43. |
  44. | All authentication guards have a user provider, which defines how the
  45. | users are actually retrieved out of your database or other storage
  46. | system used by the application. Typically, Eloquent is utilized.
  47. |
  48. | If you have multiple user tables or models you may configure multiple
  49. | providers to represent the model / table. These providers may then
  50. | be assigned to any extra authentication guards you have defined.
  51. |
  52. | Supported: "database", "eloquent"
  53. |
  54. */
  55. 'providers' => [
  56. 'users' => [
  57. 'driver' => 'eloquent',
  58. 'model' => env('AUTH_MODEL', App\Models\User::class),
  59. ],
  60. // 'users' => [
  61. // 'driver' => 'database',
  62. // 'table' => 'users',
  63. // ],
  64. ],
  65. /*
  66. |--------------------------------------------------------------------------
  67. | Resetting Passwords
  68. |--------------------------------------------------------------------------
  69. |
  70. | These configuration options specify the behavior of Laravel's password
  71. | reset functionality, including the table utilized for token storage
  72. | and the user provider that is invoked to actually retrieve users.
  73. |
  74. | The expiry time is the number of minutes that each reset token will be
  75. | considered valid. This security feature keeps tokens short-lived so
  76. | they have less time to be guessed. You may change this as needed.
  77. |
  78. | The throttle setting is the number of seconds a user must wait before
  79. | generating more password reset tokens. This prevents the user from
  80. | quickly generating a very large amount of password reset tokens.
  81. |
  82. */
  83. 'passwords' => [
  84. 'users' => [
  85. 'provider' => 'users',
  86. 'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
  87. 'expire' => 60,
  88. 'throttle' => 60,
  89. ],
  90. ],
  91. /*
  92. |--------------------------------------------------------------------------
  93. | Password Confirmation Timeout
  94. |--------------------------------------------------------------------------
  95. |
  96. | Here you may define the amount of seconds before a password confirmation
  97. | window expires and users are asked to re-enter their password via the
  98. | confirmation screen. By default, the timeout lasts for three hours.
  99. |
  100. */
  101. 'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800),
  102. ];