You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Hi guys, so I'm gonna let you know, but I i don't know it's a bug or not but I didn't see on docs how to handle enum cast from the model. when I cast enum to model Activity log cannot produce the enum cast from laravel and return error.
but the data successfully send to my database.
To Reproduce
Set cast on model, enum cast that introduce by Laravel.
Setup log options in the model
Try to create / update
Expected behavior
The log should able to produce enum like convert to string or etc instead of return error
Screenshots
Versions (please complete the following information)
Your exception is talking about "Non-Baked enums" which means they don't have a value but only a name.
Can you verify that you use a non baked enum? And if so how Laravel cast stores the non baked enum in database?
Would help to debug, verify and fix the issue.
Your exception is talking about "Non-Baked enums" which means they don't have a value but only a name. Can you verify that you use a non baked enum? And if so how Laravel cast stores the non baked enum in database? Would help to debug, verify and fix the issue.
Exactly I didn't have value on my enum cause some reason, but I thought,it will be a good idea if we give a fallback if the enum doesn't has value. when we use non baked enum let say I've name with "Monthly" or "Yearly" definitely I just want use it instead of make value so will safe my time, so when i pass to eloquent, eloquent will pass the name, so if the name is "UserRegisteredInYearly" eloquent will save the same also.
Describe the bug
Hi guys, so I'm gonna let you know, but I i don't know it's a bug or not but I didn't see on docs how to handle enum cast from the model. when I cast enum to model Activity log cannot produce the enum cast from laravel and return error.
but the data successfully send to my database.
To Reproduce
Expected behavior
The log should able to produce enum like convert to string or etc instead of return error
Screenshots
Versions (please complete the following information)
Additional context
Exception
Stack Trace
The text was updated successfully, but these errors were encountered: