Skip to content

Commit

Permalink
- Fix nested path naming issue
Browse files Browse the repository at this point in the history
  • Loading branch information
paramientos committed Sep 10, 2024
1 parent 1aaaab4 commit ffe0776
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Commands/MaryGenCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit ffe0776

Please sign in to comment.