How to handle no "primary key" on models? #158
Unanswered
ryanmortier
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Considering that if a table is using a composite primary key, you won't have a surrogate primary key required for Eloquent. How do you handle this in the model? Do you set
protected $primary_key = null;
andpublic $incrementing = false;
or do you handle this another way?Beta Was this translation helpful? Give feedback.
All reactions