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

[Feature Request]: enum on Model Creation #1087

Open
IsaacHatilima opened this issue Oct 14, 2024 · 2 comments
Open

[Feature Request]: enum on Model Creation #1087

IsaacHatilima opened this issue Oct 14, 2024 · 2 comments

Comments

@IsaacHatilima
Copy link

Feature Description

  1. When creating a model with other file like resource, request etc. It would be nice to be able to define a column as enum and pass the enum options or just enum and pass the options post creation.
  2. Adding $guarded and $hidden as is with $fillable. For people like me who prefer to use $guarded over $fillable, an option to add the $guarded array would be nice to have.
@adelf
Copy link
Member

adelf commented Oct 18, 2024

  1. We will try to add an enum and other options in one of the next iterations.
  2. How should $guarded shoule be filled?

@IsaacHatilima
Copy link
Author

In settings we can have a toggle to enable guarded then it shows along the Nullable checkbox. That way we the elegant look still maintains by default.

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

No branches or pull requests

2 participants