'Verifikasi Email', ])] class VerifyEmail extends Component { use WithToast; public function mount(): void { $user = auth()->user(); if ($user?->hasVerifiedEmail()) { $this->redirectIntended(route('member.overview'), navigate: true); } } /** * Send email verification notification to the user. */ public function resend(): void { $user = auth()->user(); if ($user?->hasVerifiedEmail()) { $this->redirectIntended(route('member.overview'), navigate: true); return; } $user?->sendEmailVerificationNotification(); $this->toast('Tautan verifikasi baru telah dikirim ke alamat email Anda.'); } /** * Log the user out of the application. */ public function logout(): void { auth()->logout(); $this->redirect(route('login'), navigate: true); } public function render(): View { return view('livewire.auth.verify-email'); } }