Add Support for Code::default()
#4576
Unanswered
flexchar
asked this question in
Ideas & Feature Requests
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Description:
I'm trying to insert default properties using
->default()callback on the field.However the call back seems to never be called and the field is never prefilled/always null when creating resource.
I tried with and without dd statement. As you can see, Nova returns with
value: null. I cannot trace it down. The model class is clean except for the cast which is set to'extra_data' => 'object',.Path for the 2nd image

example.com/nova-api/model-resources/creation-fields?editing=true&editMode=create&viaResource=&viaResourceId=&viaRelationship=I may be doing something very obviously stupid or it's simply a bug.
Beta Was this translation helpful? Give feedback.
All reactions