Skip to content

Commit e66895d

Browse files
committed
fix make route command
1 parent 4e3b9ea commit e66895d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/Console/MakeRouteCommand.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ private function createModuleRoute(): void
5151
if (! file_exists($path)) {
5252
file_put_contents($path, $stub);
5353
} else {
54+
$stub = str_replace('<?php', '', $stub);
55+
$stub = str_replace('use Illuminate\Support\Facades\Route;', '// ' . Str::camel($this->resourceName) . ' routes', $stub);
56+
5457
file_put_contents($path, $stub, FILE_APPEND);
5558
}
5659
}

0 commit comments

Comments
 (0)