src/Primitive/Container/Container.php
public function lists($valueByKey, $key = null)
    {
        return new static(Arr::pluck($this->items, $this->getKey($valueByKey), $this->getKey($key)));
    }
public function lists($valueByKey, $key = null)
    {
        return new static(Arr::pluck($this->items, $this->getKey($valueByKey), $this->getKey($key)));
    }
Get new Container with the values of a given key.
1 Argument is key to make value from.
2 Argument is key from the same Arrayable which will be the key.

@param  mixed $valueByKey
@param  mixed $key
@return static