diff --git a/src/Commands/MaryGenCommand.php b/src/Commands/MaryGenCommand.php index 26e4587..01b9758 100644 --- a/src/Commands/MaryGenCommand.php +++ b/src/Commands/MaryGenCommand.php @@ -456,6 +456,8 @@ private function updateRoute(string $tableName, string $viewName): string { $webRouteContent = File::get(base_path('routes/web.php')); $uri = str($tableName)->kebab(); + + $viewName = str_replace('/', '.', $viewName); $route = "Volt::route('/{$uri}', '{$viewName}');"; if (!str($webRouteContent)->contains($route)) {