Answers for "Laravel get only the Ids of an eloquent arrays"

PHP
0

Laravel get only the Ids of an eloquent arrays

$post_ids = Post::pluck('id')->toArray();
Posted by: Guest on July-18-2021

Code answers related to "Laravel get only the Ids of an eloquent arrays"

Browse Popular Code Answers by Language