Closed hanicab closed 5 months ago
Hi @hanicab, are you on the latest version (3.3.1) of the package? A PR got merged earlier today that should have fixed this issue.
@ryanlholt You are right, the bug is fixed when updated to the latest version
Thank you very much !
I think it was better to add the method name as suffix instead of a random string, to be able to call the route by its name inside the app (from views ..etc).
example :
->name("webhook-client-{$name}-{$method}");
@hanicab Yeah I'm not sure if the endpoints were meant to be used like that since that portion is undocumented. We actually ran into this issue when using the same config for multiple endpoints and not due to using different methods for the same endpoint. You may be able to use some combination of Laravel's underlying route functions to find the name of the route you need.
Fixed in the latest version.
Hello,
My application should have 1 endpoint that accepts GET and POST methods.
The POST method for receiving data, and the GET method for health checks.
But when I tried doing that by adding the lines above to my route.php file, I got an error.
The error is :
Unable to prepare route [webhook-url] for serialization. Another route has already been assigned name [webhook-client-app-1].
Have you an idea how to resovle this issue ?
Thanks