sendEmailVerificationNotification(); Session::flash('status', 'verification-link-sent'); } /** * Log the current user out of the application. */ public function logout(Logout $logout): void { $logout(); $this->redirect('/', navigate: true); } /** * Handle the component's rendering hook. */ public function rendering(View $view): void { if (Auth::user()->hasVerifiedEmail()) { $this->redirectIntended(default: route('dashboard', absolute: false), navigate: true); return; } } }; ?>