protected function getConfig($cfg, $name = null)
    {
        if (is_null($name)) {
            $name = $this->apiName;
        }

        $name = $name ? ".$name" : '';

        return config("api.$cfg{$name}");
    }
protected function getConfig($cfg, $name = null)
    {
        if (is_null($name)) {
            $name = $this->apiName;
        }

        $name = $name ? ".$name" : '';

        return config("api.$cfg{$name}");
    }
protected function getConfig ( $ cfg , $ name = null ) { if ( is_null ( $ name ) ) { $ name = $ this -> apiName ; } $ name = $ name ? ".$name" : '' ; return config ( "api.$cfg{$name}" ) ; }
Get config considering the API name if present.

@param string $cfg Config path
@param string $name Name of api if present

@return mixed The result of the config
Get config considering the API name if present .