*/ 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) ->view('emails.kegiatan-workflow', [ 'notifiable' => $notifiable, 'title' => $this->title, 'contentMessage' => $this->message, 'actionUrl' => $this->actionUrl, 'actionLabel' => $this->actionLabel ?? 'Buka', ]) ->subject($this->title); } /** * Get the array representation of the notification. * * @return array */ public function toArray(object $notifiable): array { return [ 'title' => $this->title, 'message' => $this->message, 'action_url' => $this->actionUrl, 'action_label' => $this->actionLabel ?? 'Lihat detail', ]; } }