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