Eloquent::pluck PHP Method

pluck() public static method

Get an array with the values of a given column.
public static pluck ( string $column, string | null $key = null ) : Collection
$column string
$key string | null
return Illuminate\Support\Collection
        public static function pluck($column, $key = null)
        {
            return \Illuminate\Database\Eloquent\Builder::pluck($column, $key);
        }
Eloquent