ThreadSky
About ThreadSky
Log In
jclermont.com
•
394 days ago
Why I always add a primary key to many-to-many tables, even when Laravel doesn't require it.
https://masteringlaravel.io/daily/2024-03-12-why-i-always-add-a-primary-key-to-many-to-many-tables
Comments
Log in
with your Bluesky account to leave a comment
[–]
seankegel.com
•
394 days ago
I just ran into this with a many to many where I needed a third item in the pivot that was nullable. Having the ID in place would have made the update a lot simpler.
1
reply
Posting Rules
Be respectful to others
No spam or self-promotion
Stay on topic
Follow Bluesky's terms of service
×
Reply
Post Reply
Comments