line('The introduction to the notification.') ->action('Notification Action', url('/')) ->line('Thank you for using our application!'); } /** * Get the array representation of the notification. * * @param mixed $notifiable * @return array */ public function toArray($notifiable) { return [ // ]; } public function toFacebookPoster($notifiable) { $url = url(env('APP_URL') . "/" . $notifiable->slug); //$title = $notifiable->title; //$title = str_replace("’", "'", $title); //$title = str_replace('“', "'", $title); $text = $notifiable->title; return (new FacebookPosterPost($text))->withLink($url); } }