So a many to many. I would recommend using Eloquent. Eloquent is the icing on the cake.
https://laravel.com/docs/10.x/eloquent-relationships#many-to-many
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hi Guys, I have these 3 tables:
Jobs
- id
- name
Measures
- id
- name
Jobs_Measures
- job_id
- measure_id
Each Job can have multiple Measures and each Measure can be assigned multiple Jobs. What would be the best way to define eloquent relationships in such a scenerio? Thanks for any tips. HT
Please or to participate in this conversation.