[Bug]: same route name error when use artisan optimize
aobozhang opened this issue · comments
Aobo commented
What happened?
same route name error
when use optimize
How to reproduce the bug
when use
php artisan optimize
it shows
LogicException
Unable to prepare route [wave/presence-channel-users] for serialization. Another route has already been assigned name [wave.presence-channel-users].
at vendor/laravel/framework/src/Illuminate/Routing/AbstractRouteCollection.php:247
243▕ $route->name($this->generateRouteName());
244▕
245▕ $this->add($route);
246▕ } elseif (! is_null($symfonyRoutes->get($name))) {
➜ 247▕ throw new LogicException("Unable to prepare route [{$route->uri}] for serialization. Another route has already been assigned name [{$name}].");
248▕ }
249▕
250▕ $symfonyRoutes->add($route->getName(), $route->toSymfonyRoute());
251▕
+34 vendor frames
35 artisan:35
Illuminate\Foundation\Console\Kernel::handle()
Package Version
"qruto/laravel-wave": "^0.6.0",
PHP Version
8.2.1
Laravel Version
10.7.1
Which operating systems does with happen with?
Windows
Notes
No response
Slava Razum commented
Fixed in 0.6.1 version.