public static function read($key = '', $default = null)
    {
        if (empty($key)) {
            return self::instance()->all();
        }
        if (!self::exists($key)) {
            return $default;
        }
        return self::instance()->get($key);
    }
public static function read($key = '', $default = null)
    {
        if (empty($key)) {
            return self::instance()->all();
        }
        if (!self::exists($key)) {
            return $default;
        }
        return self::instance()->get($key);
    }
public static function read ( $ key = '' , $ default = null ) { if ( empty ( $ key ) ) { return self :: instance ( ) -> all ( ) ; } if ( ! self :: exists ( $ key ) ) { return $ default ; } return self :: instance ( ) -> get ( $ key ) ; }
Read configuration value

@param string $key     Configuration-Key Path
@param mixed  $default Default value if key is empty/not-found

@return mixed
Read configuration value