Enum casting option for collection_name
#3833
Unanswered
chinmaypurav
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The idea is to have an enum cast for Media model.
The cast will be defined in config - default value to be
string
and it can be changed to anyEnum::class
as per the project requirements within the project namespace.Since we now have method based casts, we can easily set the cast value based off a config file.
Do let me know if the idea is in the correct direction; if accepted by any maintainer, I can submit the PR.
Beta Was this translation helpful? Give feedback.
All reactions