Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

Laravel get only the Ids of an eloquent arrays

$post_ids = Post::pluck('id')->toArray();
Source by devsenv.com #
 
PREVIOUS NEXT
Tagged: #Laravel #Ids #eloquent #arrays
ADD COMMENT
Topic
Name
7+9 =