use NotificationChannels\FacebookPoster\FacebookPosterChannel;
use NotificationChannels\FacebookPoster\FacebookPosterPost;
class NewsWasPublished extends Notification
{
/**
* Get the notification's delivery channels.
*
* @param mixed $notifiable
* @return array
*/
public function via($notifiable)
{
return [FacebookPosterChannel::class];
}
public function toFacebookPoster($notifiable) {
return new FacebookPosterPost('Laravel notifications are awesome!');
}
}
public function toFacebookPoster($notifiable) {
return new FacebookPosterPost('Laravel notifications are awesome!');
}
public function toFacebookPoster($notifiable) {
return (new FacebookPosterPost('Laravel notifications are awesom!'))->withLink('https://laravel.com');
}
public function toFacebookPoster($notifiable) {
return (new FacebookPosterPost('Laravel notifications are awesom!'))->withImage('tayee.png');
}
public function toFacebookPoster($notifiable) {
return (new FacebookPosterPost('Laravel notifications are awesom!'))
->withVideo('bedaer.mp4',[ 'title' => 'My First Video' , 'Description' => 'published by FacebookPoster.' ]);
}
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.