user = $user; } /** * Get the array representation of the notification. * * @param User $notifiable * * @return array * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function toArray(User $notifiable) { return [ ]; } /** * Get the mail representation of the notification. * * @param User $notifiable * * @return MailMessage * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function toMail(User $notifiable) { $subject = (string) trans('email.disabled_mfa_subject'); return (new MailMessage())->markdown('emails.security.disabled-mfa', ['user' => $this->user])->subject($subject); } /** * Get the Slack representation of the notification. * * @param User $notifiable * * @return SlackMessage * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function toSlack(User $notifiable) { $message = (string) trans('email.disabled_mfa_slack', ['email' => $this->user->email]); return (new SlackMessage())->content($message); } /** * Get the notification's delivery channels. * * @param User $notifiable * * @return array * * @SuppressWarnings(PHPMD.UnusedFormalParameter) */ public function via(User $notifiable) { return ReturnsAvailableChannels::returnChannels('user', $notifiable); } }