Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

eloquent pluck multiple columns

$records = $records->pluck('data', 'id')->toArray();
// [
//	'id' => 'data',
//  ...
//] 
 
PREVIOUS NEXT
Tagged: #eloquent #pluck #multiple #columns
ADD COMMENT
Topic
Name
5+4 =