*/ public function via(object $notifiable): array { return ['database', 'mail']; } /** * Get the mail representation of the notification. */ public function toMail(object $notifiable): MailMessage { return (new MailMessage) ->subject("Document status changed: {$this->document->name}") ->line("The document '{$this->document->name}' has been {$this->action}.") ->action('View Document', route('documents.show', $this->document)); } /** * Get the array representation of the notification. * * @return array */ public function toArray(object $notifiable): array { return [ // ]; } }