Skip to content

Commit

Permalink
Fix route naming
Browse files Browse the repository at this point in the history
  • Loading branch information
MoamenEltouny committed Oct 3, 2023
1 parent ffebbe0 commit 7cc9213
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -47,7 +47,7 @@ private function mapApiRoutes(bool $isConsole, string $module)
->name($module . '.');

if ($isConsole && in_array('module:routes', $_SERVER['argv'] ?? [])) {
$routes->name('[Module:' . $module . '] ');
$routes->name($module . '.');
}

$routes->group(module_path(AppServiceProvider::$module, 'routes/api.php'));
Expand All @@ -68,7 +68,7 @@ private function mapWebRoutes(bool $isConsole, string $module)
->name($module . '.');

if ($isConsole && in_array('module:routes', $_SERVER['argv'] ?? [])) {
$routes->name('[Module:' . $module . '] ');
$routes->name($module . '.');
}

$routes->group(module_path(AppServiceProvider::$module, 'routes/web.php'));
Expand Down

0 comments on commit 7cc9213

Please sign in to comment.