public static function registerConfig($config, $path, $config_path = "") {
        $inPath = $path;
        $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;
        $crudgenConfig = config_path("sirgrimorum\\crudgenerator.php");
        if (file_exists($crudgenConfig) && file_exists($path)) {
            $modeloM = basename($config['modelo']);
            $contents = file($crudgenConfig);
            $inicio = -1;
            $fin = -1;
            $encontrado = -1;
            foreach ($contents as $index => $line) {
                if (strpos($line, "admin_routes") > 0) {
                    $inicio = $index;
                }
                if (strpos($line, $modeloM) > 0 && $inicio >= 0 && $fin == -1) {
                    $encontrado = $index;
                }
                if (strpos($line, "]") > 0 && $inicio >= 0 && $fin == -1) {
                    $fin = $index;
                }
            }
            $newTexto = chr(9) . '"' . $modeloM . '" => "' . $inPath . '", ' . chr(13) . chr(10);
            if ($encontrado >= 0) {
                $contents[$encontrado] = $newTexto;
            } elseif ($inicio >= 0 && $fin >= 0) {
                $newContent = array_slice($contents, 0, $fin);
                $newContent[] = $newTexto;
                foreach (array_slice($contents, $fin) as $linea) {
                    $newContent[] = $linea;
                }
                $contents = $newContent;
            }
            $contents = file_put_contents($crudgenConfig, $contents);
        } else {
            $contents = false;
        }
        return $contents;
    }