@luceos @jordanjay29 help me
$mentioned = array("1", "2");
protected function sync(Post $post, array $mentioned)
{
$post->mentionsUsers()->sync($mentioned);
$users = User::whereIn('id', $mentioned)
->get()
->filter(function ($user) use ($post) {
return $user->id !== $post->user->id;
})
->all();
$this->notifications->sync(new UserMentionedBlueprint($post), $users);
}
but I did not receive notification