middleware('auth:frontend'); } /** * Display the password confirmation view. */ public function showConfirmForm(): View | RedirectResponse { if (Auth::guard('frontend')->check()) { return \response()->redirectToRoute('home'); } /** @var view-string $view */ $view = 'theme::auth.passwords.confirm'; return view($view); } /** * Get the post register / login redirect path. */ public function redirectPath(): string { return $this->authLoggedRedirectPath(); } }