public function get($name, $default = null)
    {
        $parts = explode('.', $name);
        $partsSize = count($parts);

        if ($partsSize < 1) {
            throw new Exception('Invalid config::get format !');
        }

        $this->loadData($parts[0]);

        if ($partsSize == 1) {
            return $this->data[$parts[0]];
        }

        $path = implode('.', array_slice($parts, 1, $partsSize));

        return Arr::get($this->data[$parts[0]], $path, $default);
    }
public function get($name, $default = null)
    {
        $parts = explode('.', $name);
        $partsSize = count($parts);

        if ($partsSize < 1) {
            throw new Exception('Invalid config::get format !');
        }

        $this->loadData($parts[0]);

        if ($partsSize == 1) {
            return $this->data[$parts[0]];
        }

        $path = implode('.', array_slice($parts, 1, $partsSize));

        return Arr::get($this->data[$parts[0]], $path, $default);
    }
public function get ( $ name , $ default = null ) { $ parts = explode ( '.' , $ name ) ; $ partsSize = count ( $ parts ) ; if ( $ partsSize < 1 ) { throw new Exception ( 'Invalid config::get format !' ) ; } $ this -> loadData ( $ parts [ 0 ] ) ; if ( $ partsSize == 1 ) { return $ this -> data [ $ parts [ 0 ] ] ; } $ path = implode ( '.' , array_slice ( $ parts , 1 , $ partsSize ) ) ; return Arr :: get ( $ this -> data [ $ parts [ 0 ] ] , $ path , $ default ) ; }
Get config option

@param $name
@param null $default
@return mixed
@throws Exception
Get config option