Model primary key in case of composite primary key #4742
Unanswered
shankiflang
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey guys,
For business need, I have
table.primary(['variant_id', 'name'])
for composite primary key in my migration.I wanted to know if I need to set something special in the model ?
Do I have to do something like this :
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions