© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
29 replies
codeartisan

Create a relationship manager for a pivot table

How do I create a relationship manager for a pivot table please?
Solution
On
AmenityProperty
AmenityProperty
define 2
->belongsTo()
->belongsTo()
relations (
property
property
and
amenity
amenity
). You should be able to access the data by
property.name
property.name
then. Maybe
pivot.property.name
pivot.property.name
or
->getStateUsing(fn ($record) => $record->pivot->property->name
->getStateUsing(fn ($record) => $record->pivot->property->name
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

Relation Manager for pivot table
FilamentFFilament / ❓┊help
2y ago
How do I create a relation manager for a pivot table
FilamentFFilament / ❓┊help
3y ago
Is a relationship manager required to insert/update pivot table data?
FilamentFFilament / ❓┊help
2y ago
Create select with pivot relationship
FilamentFFilament / ❓┊help
3y ago