*/ public function via(): array { return ['mail']; } /** * Get the mail representation of the notification. */ public function toMail(): MailMessage { return (new MailMessage) ->subject('Task overdue') ->line("Task «{$this->task->title}» overdue"); } /** * Get the array representation of the notification. * * @return array */ public function toArray(): array { return [ // ]; } }