auth.php 2.9KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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' => env('AUTH_GUARD', 'api'),
  15. ],
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Authentication Guards
  19. |--------------------------------------------------------------------------
  20. |
  21. | Next, you may define every authentication guard for your application.
  22. | Of course, a great default configuration has been defined for you
  23. | here which uses session storage and the Eloquent user provider.
  24. |
  25. | All authentication drivers have a user provider. This defines how the
  26. | users are actually retrieved out of your database or other storage
  27. | mechanisms used by this application to persist your user's data.
  28. |
  29. | Supported: "token"
  30. |
  31. */
  32. 'guards' => [
  33. 'api' => ['driver' => 'api'],
  34. ],
  35. /*
  36. |--------------------------------------------------------------------------
  37. | User Providers
  38. |--------------------------------------------------------------------------
  39. |
  40. | All authentication drivers have a user provider. This defines how the
  41. | users are actually retrieved out of your database or other storage
  42. | mechanisms used by this application to persist your user's data.
  43. |
  44. | If you have multiple user tables or models you may configure multiple
  45. | sources which represent each model / table. These sources may then
  46. | be assigned to any extra authentication guards you have defined.
  47. |
  48. | Supported: "database", "eloquent"
  49. |
  50. */
  51. 'providers' => [
  52. //
  53. ],
  54. /*
  55. |--------------------------------------------------------------------------
  56. | Resetting Passwords
  57. |--------------------------------------------------------------------------
  58. |
  59. | Here you may set the options for resetting passwords including the view
  60. | that is your password reset e-mail. You may also set the name of the
  61. | table that maintains all of the reset tokens for your application.
  62. |
  63. | You may specify multiple password reset configurations if you have more
  64. | than one user table or model in the application and you want to have
  65. | separate password reset settings based on the specific user types.
  66. |
  67. | The expire time is the number of minutes that the reset token should be
  68. | considered valid. This security feature keeps tokens short-lived so
  69. | they have less time to be guessed. You may change this as needed.
  70. |
  71. */
  72. 'passwords' => [
  73. //
  74. ],
  75. ];