File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed
Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 1212 'views ' => true ,
1313 'home ' => '/home ' ,
1414 'prefix ' => '' ,
15+ 'name_prefix ' => '' ,
1516 'domain ' => null ,
1617 'lowercase_usernames ' => false ,
1718 'limiters ' => [
Original file line number Diff line number Diff line change 77use Illuminate \Support \Facades \Auth ;
88use Illuminate \Support \Facades \Route ;
99use Illuminate \Support \ServiceProvider ;
10+ use Illuminate \Support \Str ;
1011use Laravel \Fortify \Actions \RedirectIfTwoFactorAuthenticatable ;
1112use Laravel \Fortify \Contracts \EmailVerificationNotificationSentResponse as EmailVerificationNotificationSentResponseContract ;
1213use Laravel \Fortify \Contracts \FailedPasswordConfirmationResponse as FailedPasswordConfirmationResponseContract ;
@@ -158,11 +159,15 @@ protected function configurePublishing()
158159 */
159160 protected function configureRoutes ()
160161 {
162+ $ as = config ('fortify.name_prefix ' , '' );
163+ $ as = $ as !== '' ? Str::finish ($ as , '. ' ) : '' ;
164+
161165 if (Fortify::$ registersRoutes ) {
162166 Route::group ([
163167 'namespace ' => 'Laravel\Fortify\Http\Controllers ' ,
164168 'domain ' => config ('fortify.domain ' , null ),
165169 'prefix ' => config ('fortify.prefix ' ),
170+ 'as ' => $ as ,
166171 ], function () {
167172 $ this ->loadRoutesFrom (__DIR__ .'/../routes/routes.php ' );
168173 });
Original file line number Diff line number Diff line change 8181 |--------------------------------------------------------------------------
8282 |
8383 | 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 .
84+ | that it registers in the application. You may also give a route name
85+ | prefix and the subdomain under which all the Fortify routes exist .
8686 |
8787 */
8888
8989 'prefix ' => '' ,
9090
91+ 'name_prefix ' => '' ,
92+
9193 'domain ' => null ,
9294
9395 /*
You can’t perform that action at this time.
0 commit comments