lists → pluck for Laravel 5.5

This commit is contained in:
Toby Zerner 2017-12-27 07:32:39 +10:30
parent 4548522ad7
commit b8d73a9ade

View File

@ -53,7 +53,7 @@ class PushNewPosts
$pusher->trigger('public', 'newPost', [
'postId' => $event->post->id,
'discussionId' => $event->post->discussion->id,
'tagIds' => $event->post->discussion->tags()->lists('id')
'tagIds' => $event->post->discussion->tags()->pluck('id')
]);
}
}