$collection->pluck($field, $split = null, $unique = false)
Extracts all values for a single field into a new array
-
$field (string)
The name of the field -
$split (string)
The separator to split by -
$unique (boolean)
If set to true, only unique values will be fetched, default is false. -
return (array)