Model primary key in case of composite primary key #4742
Unanswered
benjibenoit
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
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