Support the ongoing development of Laravel.io →
Database Eloquent Installation

I have created three tables, A, B and C.

A and B have a ManyToMany relationship so I created A_B table, and now I have to relation A_B, to C table How can I do that?

Or it's better to make a model D to substitute A_B pivot table?

Thanks in advance

Last updated 3 years ago.
0

Watch some Laracast videos.

0

Sign in to participate in this thread!

PHPverse

Your banner here too?

geshner geshner Joined 27 Oct 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.