voyager icon indicating copy to clipboard operation
voyager copied to clipboard

Select Dropdown using enum->value instead of enum?

Open cyyeoh opened this issue 9 months ago • 0 comments

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

cyyeoh avatar Apr 29 '24 02:04 cyyeoh