fortify.php 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. <?php
  2. use App\Providers\RouteServiceProvider;
  3. use Laravel\Fortify\Features;
  4. return [
  5. /*
  6. |--------------------------------------------------------------------------
  7. | Fortify Guard
  8. |--------------------------------------------------------------------------
  9. |
  10. | Here you may specify which authentication guard Fortify will use while
  11. | authenticating users. This value should correspond with one of your
  12. | guards that is already present in your "auth" configuration file.
  13. |
  14. */
  15. 'guard' => 'web',
  16. /*
  17. |--------------------------------------------------------------------------
  18. | Fortify Password Broker
  19. |--------------------------------------------------------------------------
  20. |
  21. | Here you may specify which password broker Fortify can use when a user
  22. | is resetting their password. This configured value should match one
  23. | of your password brokers setup in your "auth" configuration file.
  24. |
  25. */
  26. 'passwords' => 'users',
  27. /*
  28. |--------------------------------------------------------------------------
  29. | Username / Email
  30. |--------------------------------------------------------------------------
  31. |
  32. | This value defines which model attribute should be considered as your
  33. | application's "username" field. Typically, this might be the email
  34. | address of the users but you are free to change this value here.
  35. |
  36. | Out of the box, Fortify expects forgot password and reset password
  37. | requests to have a field named 'email'. If the application uses
  38. | another name for the field you may define it below as needed.
  39. |
  40. */
  41. 'username' => 'email',
  42. 'email' => 'email',
  43. /*
  44. |--------------------------------------------------------------------------
  45. | Home Path
  46. |--------------------------------------------------------------------------
  47. |
  48. | Here you may configure the path where users will get redirected during
  49. | authentication or password reset when the operations are successful
  50. | and the user is authenticated. You are free to change this value.
  51. |
  52. */
  53. 'home' => RouteServiceProvider::HOME,
  54. /*
  55. |--------------------------------------------------------------------------
  56. | Fortify Routes Middleware
  57. |--------------------------------------------------------------------------
  58. |
  59. | Here you may specify which middleware Fortify will assign to the routes
  60. | that it registers with the application. If necessary, you may change
  61. | these middleware but typically this provided default is preferred.
  62. |
  63. */
  64. 'middleware' => ['web'],
  65. /*
  66. |--------------------------------------------------------------------------
  67. | Rate Limiting
  68. |--------------------------------------------------------------------------
  69. |
  70. | By default, Fortify will throttle logins to five requests per minute for
  71. | every email and IP address combination. However, if you would like to
  72. | specify a custom rate limiter to call then you may specify it here.
  73. |
  74. */
  75. 'limiters' => [
  76. 'login' => null,
  77. ],
  78. /*
  79. |--------------------------------------------------------------------------
  80. | Features
  81. |--------------------------------------------------------------------------
  82. |
  83. | Some of the Fortify features are optional. You may disable the features
  84. | by removing them from this array. You're free to only remove some of
  85. | these features or you can even remove all of these if you need to.
  86. |
  87. */
  88. 'features' => [
  89. Features::registration(),
  90. Features::resetPasswords(),
  91. // Features::emailVerification(),
  92. Features::updateProfileInformation(),
  93. Features::updatePasswords(),
  94. Features::twoFactorAuthentication([
  95. 'confirmPassword' => true,
  96. ]),
  97. ],
  98. ];