ticket = $ticket; $this->action_type = $action_type; $this->addedBy = $addedBy; $this->comment = $comment; //$this->assign_person = $assign_person; } /** * Get the notification's delivery channels. * * @param mixed $notifiable * @return array */ public function via($notifiable) { return ['database']; } /** * Get the mail representation of the notification. * * @param mixed $notifiable * @return \Illuminate\Notifications\Messages\MailMessage */ public function toDatabase($notifiable) { return [ 'ticket' => $this->ticket,// ticket information 'action_type' => $this->action_type, // creator 'addedBy' => $this->addedBy, // creator 'comment' => $this->comment, // creator 'user' => $notifiable // send ]; } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } }