['guest:'.config('fortify.guard')]], function () { // Login Route::get('/login', [AuthenticatedSessionController::class, 'create'])->name('login'); Route::post('/login', [AuthenticatedSessionController::class, 'store']); // Register if (Features::enabled(Features::registration())) { Route::get('/register', [RegisteredUserController::class, 'create'])->name('register'); Route::post('/register', [RegisteredUserController::class, 'store'])->name('register.store'); } // Forgot Password Route::get('/forgot-password', [PasswordResetLinkController::class, 'create'])->name('password.request'); Route::post('/forgot-password', [PasswordResetLinkController::class, 'store'])->name('password.email'); // Reset Password Route::get('/reset-password/{token}', [NewPasswordController::class, 'create'])->name('password.reset'); Route::post('/reset-password', [NewPasswordController::class, 'store'])->name('password.update'); // Verify Email if (Features::enabled(Features::emailVerification())) { Route::get('/email/verify', [EmailVerificationPromptController::class, '__invoke'])->name('verification.notice'); Route::get('/email/verify/{id}/{hash}', [VerifyEmailController::class, '__invoke'])->name('verification.verify'); Route::post('/email/verification-notification', [EmailVerificationNotificationController::class, 'store'])->name('verification.send'); } // Two Factor Authentication if (Features::enabled(Features::twoFactorAuthentication())) { Route::get('/two-factor-challenge', [TwoFactorAuthenticatedSessionController::class, 'create'])->name('two-factor.login'); Route::post('/two-factor-challenge', [TwoFactorAuthenticatedSessionController::class, 'store']); } }); Route::group(['middleware' => [config('fortify.auth_middleware', 'auth').':'.config('fortify.guard')]], function () { // Logout Route::post('/logout', [AuthenticatedSessionController::class, 'destroy'])->name('logout'); // Email Verification if (Features::enabled(Features::emailVerification())) { Route::get('/email/verify', [EmailVerificationPromptController::class, '__invoke'])->name('verification.notice'); } // Confirm Password Route::get('/user/confirm-password', [ConfirmablePasswordController::class, 'show'])->name('password.confirm'); Route::post('/user/confirm-password', [ConfirmablePasswordController::class, 'store'])->name('password.confirm.store'); Route::get('/user/confirmed-password-status', [ConfirmedPasswordStatusController::class, 'show'])->name('password.confirmation'); // Two Factor Authentication if (Features::enabled(Features::twoFactorAuthentication())) { Route::get('/user/two-factor-qr-code', [TwoFactorQrCodeController::class, 'show']); Route::get('/user/two-factor-secret-key', [TwoFactorSecretKeyController::class, 'show']); Route::post('/user/two-factor-authentication', [TwoFactorAuthenticationController::class, 'store']); Route::delete('/user/two-factor-authentication', [TwoFactorAuthenticationController::class, 'destroy']); Route::get('/user/two-factor-recovery-codes', [RecoveryCodeController::class, 'index']); Route::post('/user/two-factor-recovery-codes', [RecoveryCodeController::class, 'store']); Route::post('/user/confirmed-two-factor-authentication', [ConfirmedTwoFactorAuthenticationController::class, 'store']); } });