*/ public function via(object $notifiable): array { return ['mail']; } /** * Get the mail representation of the notification. */ public function toMail(object $notifiable): MailMessage { return (new MailMessage) ->subject($this->newsletter->subject) ->view('mail.newsletter', [ 'subject' => $this->newsletter->subject, 'description' => $this->newsletter->description, ]); } /** * Get the array representation of the notification. * * @return array */ public function toArray(object $notifiable): array { return [ // ]; } }