app/Notifications/CommentNoti.php
/**
     * Get the array representation of the notification.
     *
     * @param  mixed  $notifiable
     * @return array
     */
Get the array representation of the notification.
@param  mixed  $notifiable
@return array
Get the array representation of the notification . @param mixed $notifiable @return array
public function toArray($notifiable)
    {
        return [
            'title' => $this->post->title,
            'user' => $this->comment->user->name,
            'comment' => $this->comment->content, 
        ];
    }
public function toArray ( $ notifiable ) { return [ 'title' => $ this -> post -> title , 'user' => $ this -> comment -> user -> name , 'comment' => $ this -> comment -> content , ] ; }
Get the array representation of the notification.
Get the array representation of the notification .