*/ public function via(object $notifiable): array { return ['mail']; } /** * Get the mail representation of the notification. */ public function toMail(object $notifiable): MailMessage { return (new MailMessage) ->greeting('Oh no!') ->subject("Your Investbrain import failed!") ->line("Heads up, your Investbrain import was unable to successfully complete. There were errors which caused the import to fail.") ->action("Try again?", route('import-export')) ->line("**Technical details:**") ->line($this->errorMessage); } /** * Get the array representation of the notification. * * @return array */ public function toArray(object $notifiable): array { return [ // ]; } }