src/package/Services/Base.php
protected function config($key = null, $default = null)
    {
        if (is_null($key)) {
            return app('tddd.config');
        }

        return ConfigFacade::get($key, $default);
    }
protected function config($key = null, $default = null)
    {
        if (is_null($key)) {
            return app('tddd.config');
        }

        return ConfigFacade::get($key, $default);
    }
protected function config ( $ key = null , $ default = null ) { if ( is_null ( $ key ) ) { return app ( 'tddd.config' ) ; } return ConfigFacade :: get ( $ key , $ default ) ; }
Get a configuration key.

@param $key

@throws \Exception

@return mixed
Get a configuration key .