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

Select Dropdown using enum->value instead of enum? #5855

Open
cyyeoh opened this issue Apr 29, 2024 · 0 comments
Open

Select Dropdown using enum->value instead of enum? #5855

cyyeoh opened this issue Apr 29, 2024 · 0 comments

Comments

@cyyeoh
Copy link

cyyeoh commented Apr 29, 2024

Laravel version

10.10

PHP version

8.1

Voyager version

dev-1.6-l10

Database

MYSQL

Description

When updating my db using admin panel from select dropdown, I discovered that Voyager is using the values of enum instead of enum itself, this causes an issue in my code when performing checking.

Steps to reproduce

in code
XEnum
case APPROVED = "APPROVED";

in BREAD
selectdropdown optional details
"APPROVED": "APPROVED"

Expected behavior

Voyager able to use enum in BREAD instead of just taking the value of enum

Screenshots

No response

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant