src/Primitive/Support/Arr.php
public static function get($array, $key, $default = null)
    {
        if (is_null($key)) return $array;

        if (isset($array[$key])) return $array[$key];

        return _data_get($array, $key, $default);
    }
public static function get($array, $key, $default = null)
    {
        if (is_null($key)) return $array;

        if (isset($array[$key])) return $array[$key];

        return _data_get($array, $key, $default);
    }
Get an item using "dot" notation.

@param  array|object  $array
@param  string $key
@param  mixed  $default

@return mixed