/** * Get an array with the values of a given key. * * @param string $value * @param string $key * @return static */ public function pluck($value, $key = null) { return new static(Arr::pluck($this->items, $value, $key)); }
function array_column($array, $key) { return Arr::pluck($array, $key); }