refresh(); } #[Computed] public function user(): ?User { return app(GetAuthenticatedUserContext::class)->fetch(); } public function resendVerificationEmail(ResendVerificationEmail $action): void { if ($this->user->email_verified_at) { $this->warning(__('The email has already been verified.')); return; } $action->execute($this->user); $this->success(__('The verification email has been sent.')); } };