title = $title; $this->content = $content; } public function via($notifiable) { return $notifiable ?? ['mail', BarkChannel::class]; } public function toMail($notifiable) { return (new MailMessage) ->subject($this->title) ->markdown('mail.custom', ['content' => $this->content]); } public function toCustom($notifiable) { return [ 'title' => $this->title, 'content' => $this->content, ]; } }