Add (news bites)
This commit is contained in:
@@ -3,10 +3,7 @@
|
||||
namespace App\Notifications;
|
||||
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
use Illuminate\Notifications\Messages\MailMessage;
|
||||
use Illuminate\Notifications\Notification;
|
||||
|
||||
use NotificationChannels\FacebookPoster\FacebookPosterChannel;
|
||||
use NotificationChannels\FacebookPoster\FacebookPosterPost;
|
||||
|
||||
@@ -34,8 +31,8 @@ public function via(object $notifiable): array
|
||||
return [FacebookPosterChannel::class];
|
||||
}
|
||||
|
||||
|
||||
public function toFacebookPoster($notifiable) {
|
||||
public function toFacebookPoster($notifiable)
|
||||
{
|
||||
return (new FacebookPosterPost(str_first_sentence($this->post->bites)))->withLink(route('front.post', ['slug' => $this->post->slug, 'category_slug' => $this->post->category->slug]));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user