-
Notifications
You must be signed in to change notification settings - Fork 11.1k
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
Custom route binding for backed enums doesn't work #51514
Labels
Comments
Lukasss93
changed the title
Custom route binding for backed enums doesn't work anymore
Custom route binding for backed enums doesn't work
May 20, 2024
crynobone
added a commit
that referenced
this issue
May 21, 2024
fixes #51514 Signed-off-by: Mior Muhammad Zaki <[email protected]>
taylorotwell
pushed a commit
that referenced
this issue
May 21, 2024
fixes #51514 Signed-off-by: Mior Muhammad Zaki <[email protected]>
CAAHS
pushed a commit
to CAAHS/laravel-framework
that referenced
this issue
May 27, 2024
Port a078b1a (Fixes explicit route binding with `BackedEnum` (laravel#51525), 2024-05-21 crynobone) to 10.x (from 11.x). fixes laravel#51583 refs laravel#51514 Signed-off-by: CAAHS <[email protected]>
This was referenced May 27, 2024
CAAHS
pushed a commit
to CAAHS/laravel-framework
that referenced
this issue
May 27, 2024
Port a078b1a (Fixes explicit route binding with `BackedEnum` (laravel#51525), 2024-05-21 crynobone) to 10.x (from 11.x). fixes laravel#51583 refs laravel#51514 Signed-off-by: CAAHS <[email protected]>
taylorotwell
pushed a commit
that referenced
this issue
May 27, 2024
Port a078b1a (Fixes explicit route binding with `BackedEnum` (#51525), 2024-05-21 crynobone) to 10.x (from 11.x). fixes #51583 refs #51514 Signed-off-by: CAAHS <[email protected]> Co-authored-by: CAAHS <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Laravel Version
11.7.0
PHP Version
8.3.3
Database Driver & Version
No response
Description
We're using a custom route binding for a backed enum in our Laravel application.
To avoid having to create a new backed enum (string) for plural words, we've been using a custom route binding to resolve the enum from plural words.
For single words, it works fine. But for plural words, it doesn't work anymore, giving the following error:
Possible Solution
Do not implicitly resolve backed enums when there is a custom route binding.
Steps To Reproduce
The text was updated successfully, but these errors were encountered: