How do I setup CRUD list operation when the table doesn't have an ID column? #1052
-
It looks like it defaults to always ordering by the ID, but in this case, my table doesn't have an ID column so it throws an error:
|
Beta Was this translation helpful? Give feedback.
Answered by
karandatwani92
Jun 27, 2024
Replies: 1 comment 3 replies
-
If your table doesn't have
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"Composite" primary keys are not supported by Eloquent models.
You have to add the
id
incrementing column to the pivot table.