public static function saveConfig($config, $path, $config_path = "") {
        $inPath = $path;
        if (isset($config['parametros'])) {
            $parametros = $config['parametros'];
            unset($config['parametros']);
        } else {
            $parametros = "";
        }
        $path = str_finish(str_replace([".", "/"], ["\\", "\\"], $path), '.php');
        if ($config_path == "") {
            $config_path = config_path($path);
        } else {
            $config_path = base_path($config_path . str_start($path, "/"));
        }
        $path = $config_path;
        $strConfig = \Sirgrimorum\CrudGenerator\CrudGenerator::arrayToFile($config);
        $contents = file_put_contents($path, $strConfig);
        return $contents;
    }