src/Collection.php
public function get($key)
    {
        $items = Arr::get($this->items, $key);

        return $this->firstOrAll($items);
    }
public function get($key)
    {
        $items = Arr::get($this->items, $key);

        return $this->firstOrAll($items);
    }
public function get ( $ key ) { $ items = Arr :: get ( $ this -> items , $ key ) ; return $ this -> firstOrAll ( $ items ) ; }
Get the resolved resource by key.

This will return an array of that resource if multiple resources are contained with the key.
If only 1 item in the array then that 1 item will be returned instead.

@param string $key
@return mixed|array
Get the resolved resource by key .