public function env(string $key)
    {
        $result = null;
        $break  = false;
        $keys   = explode('.', $key);
        $env    = $this->config->env;
        foreach ($keys as $key) {
            if (isset($env[$key])) {
                $env = $env[$key];
            } else {
                $break = true;
                break;
            }
        }
        if (!$break) {
            $result = $env;
        }
        return $result;
    }
public function env(string $key)
    {
        $result = null;
        $break  = false;
        $keys   = explode('.', $key);
        $env    = $this->config->env;
        foreach ($keys as $key) {
            if (isset($env[$key])) {
                $env = $env[$key];
            } else {
                $break = true;
                break;
            }
        }
        if (!$break) {
            $result = $env;
        }
        return $result;
    }
public function env ( string $ key ) { $ result = null ; $ break = false ; $ keys = explode ( '.' , $ key ) ; $ env = $ this -> config -> env ; foreach ( $ keys as $ key ) { if ( isset ( $ env [ $ key ] ) ) { $ env = $ env [ $ key ] ; } else { $ break = true ; break ; } } if ( ! $ break ) { $ result = $ env ; } return $ result ; }
get blog config
@param  string $key
@return mixed
get blog config