auth.php 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. return [
  3. /*
  4. |--------------------------------------------------------------------------
  5. | Authentication Drivers
  6. |--------------------------------------------------------------------------
  7. |
  8. | Here you may define every authentication driver for your application.
  9. | Of course, a default and working configuration is already defined
  10. | here but you are free to define additional drivers when needed.
  11. |
  12. | The "guard" option defines the default driver that will be used when
  13. | utilizing the "Auth" facade within your application. But, you may
  14. | access every other auth driver via the facade's "guard" method.
  15. |
  16. | All authentication drivers have a "provider". A provider defines how
  17. | users are actually retrieved out of the database or other storage
  18. | mechanism used by your application to persist your user's data.
  19. |
  20. | Supported: "session"
  21. |
  22. */
  23. 'guard' => 'app',
  24. 'guards' => [
  25. 'app' => [
  26. 'driver' => 'session',
  27. 'provider' => 'eloquent',
  28. ],
  29. ],
  30. /*
  31. |--------------------------------------------------------------------------
  32. | User Providers
  33. |--------------------------------------------------------------------------
  34. |
  35. | All authentication drivers have a "provider". A provider defines how
  36. | users are actually retrieved out of the database or other storage
  37. | mechanism used by your application to persist your user's data.
  38. |
  39. | Supported: "database", "eloquent"
  40. |
  41. */
  42. 'providers' => [
  43. 'eloquent' => [
  44. 'driver' => 'eloquent',
  45. 'model' => App\User::class,
  46. ],
  47. 'database' => [
  48. 'driver' => 'database',
  49. 'table' => 'users',
  50. ],
  51. ],
  52. /*
  53. |--------------------------------------------------------------------------
  54. | Password Reset Settings
  55. |--------------------------------------------------------------------------
  56. |
  57. | Here you may set the options for resetting passwords including the view
  58. | that is your password reset e-mail. You can also set the name of the
  59. | table that maintains all of the reset tokens for your application.
  60. |
  61. | Of course, you may define multiple password "brokers" each with a their
  62. | own storage settings and user providers. However, for most apps this
  63. | default configuration of using Eloquent is perfect out of the box.
  64. |
  65. | The expire time is the number of minutes that the reset token should be
  66. | considered valid. This security feature keeps tokens short-lived so
  67. | they have less time to be guessed. You may change this as needed.
  68. |
  69. */
  70. 'broker' => 'default',
  71. 'brokers' => [
  72. 'default' => [
  73. 'provider' => 'eloquent',
  74. 'email' => 'emails.password',
  75. 'table' => 'password_resets',
  76. 'expire' => 60,
  77. ],
  78. ],
  79. ];