Replies: 1 comment
-
Fixed at adonisjs/lucid#808 |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Is there a way to pass default values into model attributes? Here is my model file.
The default value is also defined in database level:
But when I try to create an instance without passing the optional attribute, it doesn't return it.
Do I have to send refresh query to get default values which I already know beforehand and defined at model?
Model instance's refresh method documentation
Beta Was this translation helpful? Give feedback.
All reactions