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