src/Collection.php
public function offsetGet($key)
    {
        $result = array_get($this->items, $key);

        if (is_array($result))
            return new static($result);

        return $result;
    }
public function offsetGet($key)
    {
        $result = array_get($this->items, $key);

        if (is_array($result))
            return new static($result);

        return $result;
    }
public function offsetGet ( $ key ) { $ result = array_get ( $ this -> items , $ key ) ; if ( is_array ( $ result ) ) return new static ( $ result ) ; return $ result ; }
Get an item at a given offset using Dot-notation.

@param  mixed  $key
@return Collection|bool|string
Get an item at a given offset using Dot - notation .