title = $title; $this->content = $content; $this->url = $url; $this->is_user = $is_user; } public function via($notifiable) { return $this->is_user ? ['mail'] : sysConfig('ticket_replied_notification'); } public function toMail($notifiable) { return ""; // return (new MailMessage) // ->subject(trans('notification.reply_ticket', ['title' => $this->title])) // ->line(trans('notification.ticket_content')) // ->line(strip_tags($this->content)) // ->action(trans('notification.view_ticket'), $this->url); } public function toCustom($notifiable) { return [ 'title' => trans('notification.reply_ticket', ['title' => $this->title]), 'content' => trans('notification.ticket_content').strip_tags($this->content), ]; } }