© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
6 replies
EL REKT

Relationship many to many

i have 3 table like this :

table a => id, name
table b =>id, table_a_id, name
table c => id, table_b_id, name
table a => id, name
table b =>id, table_a_id, name
table c => id, table_b_id, name


How do I create a relationship in table model C to get data related to tables B and A? anyone can help ?
Solution
Take a look at my thread here:
User BelongsToMany Groups pivot table with additional "Role" field, how to select role?

I was in a similar situation. You just need to creat relation managers for Model B and Model A in Model C.
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

many to many relationship
FilamentFFilament / ❓┊help
16mo ago
Many to many Relationship
FilamentFFilament / ❓┊help
3y ago
Many to many relationship in filament
FilamentFFilament / ❓┊help
2y ago
Relation manager Many to Many relationship
FilamentFFilament / ❓┊help
3y ago