*/ public function via(object $notifiable): array { return ['mail']; } public function toMail(object $notifiable): MailMessage { if (($override = $this->overrideOrNull(EmailTemplateSlot::TwoFactorReset)) !== null) { return $this->mailFromOverride($override, [])->action(__('Log in'), route('login')); } return (new MailMessage) ->subject(__('Two-factor authentication was removed from your account')) ->line(__('An administrator removed two-factor authentication from your account. You can set it up again from your security settings. Contact your administrator if this was not expected.')) ->action(__('Log in'), route('login')); } }