Level 10
I am wondering if the "Union" would not be the way forward with the DB query?
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Hello,
I am looking at the doc and I cannot find a way in the DB query pages to get the data from a pivot table. Any idea how to do this please?
Is there not something like ->wherePivot(tablename, id, id) ?
Thank you.
Please or to participate in this conversation.