Skip to content

Commit 29f7238

Browse files
committed
Update GenerateCommand.php
1 parent 51effe6 commit 29f7238

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GenerateCommand.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ public function handle()
7878
if (! $this->option('skip-routes')) {
7979
$this->files->deleteDirectory($this->base());
8080

81-
$named = $routes->filter(fn (Route $route) => $route->name() && ! Str::endsWith($route->name(), '.'))->groupBy(fn (Route $route) => $route->name());
81+
$named = $routes->filter(
82+
fn (Route $route) => $route->name() && ! Str::endsWith($route->name(), '.') && ! Str::startsWith($route->name(), 'generated::')
83+
)->groupBy(fn (Route $route) => $route->name());
8284

8385
$named->each($this->writeNamedFile(...));
8486
$named->undot()->each($this->writeBarrelFiles(...));

0 commit comments

Comments
 (0)