public static function config($namespace)
    {
        $configPath = pluginsPath($namespace.'/config.json');
        if(file_exists($configPath)) {
            return json_decode(File::get($configPath));
        }
        throw  new \Exception("No config.json file found for plugin ".$configPath);
    }
public static function config($namespace)
    {
        $configPath = pluginsPath($namespace.'/config.json');
        if(file_exists($configPath)) {
            return json_decode(File::get($configPath));
        }
        throw  new \Exception("No config.json file found for plugin ".$configPath);
    }
public static function config ( $ namespace ) { $ configPath = pluginsPath ( $ namespace . '/config.json' ) ; if ( file_exists ( $ configPath ) ) { return json_decode ( File :: get ( $ configPath ) ) ; } throw new \ Exception ( "No config.json file found for plugin " . $ configPath ) ; }
Get config of a plugin

@param  $namespace
@return mixed
@throws \Exception
Get config of a plugin