|
| 1 | +<?php |
| 2 | + |
| 3 | +use Laravel\Fortify\Features; |
| 4 | + |
| 5 | +return [ |
| 6 | + |
| 7 | + /* |
| 8 | + |-------------------------------------------------------------------------- |
| 9 | + | Fortify Guard |
| 10 | + |-------------------------------------------------------------------------- |
| 11 | + | |
| 12 | + | Here you may specify which authentication guard Fortify will use while |
| 13 | + | authenticating users. This value should correspond with one of your |
| 14 | + | guards that is already present in your "auth" configuration file. |
| 15 | + | |
| 16 | + */ |
| 17 | + |
| 18 | + 'guard' => 'web', |
| 19 | + |
| 20 | + /* |
| 21 | + |-------------------------------------------------------------------------- |
| 22 | + | Fortify Password Broker |
| 23 | + |-------------------------------------------------------------------------- |
| 24 | + | |
| 25 | + | Here you may specify which password broker Fortify can use when a user |
| 26 | + | is resetting their password. This configured value should match one |
| 27 | + | of your password brokers setup in your "auth" configuration file. |
| 28 | + | |
| 29 | + */ |
| 30 | + |
| 31 | + 'passwords' => 'users', |
| 32 | + |
| 33 | + /* |
| 34 | + |-------------------------------------------------------------------------- |
| 35 | + | Username / Email |
| 36 | + |-------------------------------------------------------------------------- |
| 37 | + | |
| 38 | + | This value defines which model attribute should be considered as your |
| 39 | + | application's "username" field. Typically, this might be the email |
| 40 | + | address of the users but you are free to change this value here. |
| 41 | + | |
| 42 | + | Out of the box, Fortify expects forgot password and reset password |
| 43 | + | requests to have a field named 'email'. If the application uses |
| 44 | + | another name for the field you may define it below as needed. |
| 45 | + | |
| 46 | + */ |
| 47 | + |
| 48 | + 'username' => 'email', |
| 49 | + |
| 50 | + 'email' => 'email', |
| 51 | + |
| 52 | + /* |
| 53 | + |-------------------------------------------------------------------------- |
| 54 | + | Lowercase Usernames |
| 55 | + |-------------------------------------------------------------------------- |
| 56 | + | |
| 57 | + | This value defines whether usernames should be lowercased before saving |
| 58 | + | them in the database, as some database system string fields are case |
| 59 | + | sensitive. You may disable this for your application if necessary. |
| 60 | + | |
| 61 | + */ |
| 62 | + |
| 63 | + 'lowercase_usernames' => true, |
| 64 | + |
| 65 | + /* |
| 66 | + |-------------------------------------------------------------------------- |
| 67 | + | Home Path |
| 68 | + |-------------------------------------------------------------------------- |
| 69 | + | |
| 70 | + | Here you may configure the path where users will get redirected during |
| 71 | + | authentication or password reset when the operations are successful |
| 72 | + | and the user is authenticated. You are free to change this value. |
| 73 | + | |
| 74 | + */ |
| 75 | + |
| 76 | + 'home' => '/dashboard', |
| 77 | + |
| 78 | + /* |
| 79 | + |-------------------------------------------------------------------------- |
| 80 | + | Fortify Routes Prefix / Subdomain |
| 81 | + |-------------------------------------------------------------------------- |
| 82 | + | |
| 83 | + | Here you may specify which prefix Fortify will assign to all the routes |
| 84 | + | that it registers with the application. If necessary, you may change |
| 85 | + | subdomain under which all of the Fortify routes will be available. |
| 86 | + | |
| 87 | + */ |
| 88 | + |
| 89 | + 'prefix' => '', |
| 90 | + |
| 91 | + 'domain' => null, |
| 92 | + |
| 93 | + /* |
| 94 | + |-------------------------------------------------------------------------- |
| 95 | + | Fortify Routes Middleware |
| 96 | + |-------------------------------------------------------------------------- |
| 97 | + | |
| 98 | + | Here you may specify which middleware Fortify will assign to the routes |
| 99 | + | that it registers with the application. If necessary, you may change |
| 100 | + | these middleware but typically this provided default is preferred. |
| 101 | + | |
| 102 | + */ |
| 103 | + |
| 104 | + 'middleware' => ['web'], |
| 105 | + |
| 106 | + /* |
| 107 | + |-------------------------------------------------------------------------- |
| 108 | + | Rate Limiting |
| 109 | + |-------------------------------------------------------------------------- |
| 110 | + | |
| 111 | + | By default, Fortify will throttle logins to five requests per minute for |
| 112 | + | every email and IP address combination. However, if you would like to |
| 113 | + | specify a custom rate limiter to call then you may specify it here. |
| 114 | + | |
| 115 | + */ |
| 116 | + |
| 117 | + 'limiters' => [ |
| 118 | + 'login' => 'login', |
| 119 | + 'two-factor' => 'two-factor', |
| 120 | + ], |
| 121 | + |
| 122 | + /* |
| 123 | + |-------------------------------------------------------------------------- |
| 124 | + | Register View Routes |
| 125 | + |-------------------------------------------------------------------------- |
| 126 | + | |
| 127 | + | Here you may specify if the routes returning views should be disabled as |
| 128 | + | you may not need them when building your own application. This may be |
| 129 | + | especially true if you're writing a custom single-page application. |
| 130 | + | |
| 131 | + */ |
| 132 | + |
| 133 | + 'views' => true, |
| 134 | + |
| 135 | + /* |
| 136 | + |-------------------------------------------------------------------------- |
| 137 | + | Features |
| 138 | + |-------------------------------------------------------------------------- |
| 139 | + | |
| 140 | + | Some of the Fortify features are optional. You may disable the features |
| 141 | + | by removing them from this array. You're free to only remove some of |
| 142 | + | these features or you can even remove all of these if you need to. |
| 143 | + | |
| 144 | + */ |
| 145 | + |
| 146 | + 'features' => [ |
| 147 | + Features::registration(), |
| 148 | + Features::resetPasswords(), |
| 149 | + // Features::emailVerification(), |
| 150 | + Features::updateProfileInformation(), |
| 151 | + Features::updatePasswords(), |
| 152 | + Features::twoFactorAuthentication([ |
| 153 | + 'confirm' => true, |
| 154 | + 'confirmPassword' => true, |
| 155 | + // 'window' => 0, |
| 156 | + ]), |
| 157 | + ], |
| 158 | + |
| 159 | +]; |
0 commit comments