src/Collection.php
public function get($key, $default = null)
    {
        if ($this->offsetExists($key))
        {
            return $this->offsetGet($key);
        }

        return value($default);
    }
public function get($key, $default = null)
    {
        if ($this->offsetExists($key))
        {
            return $this->offsetGet($key);
        }

        return value($default);
    }
public function get ( $ key , $ default = null ) { if ( $ this -> offsetExists ( $ key ) ) { return $ this -> offsetGet ( $ key ) ; } return value ( $ default ) ; }
Get an item from the collection by key using Dot-notation.

@param  mixed  $key
@param  mixed  $default
@return Collection|bool|string|Closure
Get an item from the collection by key using Dot - notation .