Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: same route name error when use artisan optimize #15

Closed
aobozhang opened this issue Apr 16, 2023 · 1 comment
Closed

[Bug]: same route name error when use artisan optimize #15

aobozhang opened this issue Apr 16, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@aobozhang
Copy link

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

@aobozhang aobozhang added the bug Something isn't working label Apr 16, 2023
@slavarazum
Copy link
Contributor

Fixed in 0.6.1 version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants