© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
5 replies
Jo

Having a relation manager under the edit form in a modal of a relation manager

I have a model which is called
ServicePeriod
ServicePeriod
which
hasMany
hasMany
of another model called
Slot
Slot
. I have set up the relation manager successfully, so if I go to the edit screen of
ServicePeriod
ServicePeriod
I can see all of the related
Slot
Slot
records in a list with edit and delete buttons, and I can click on them to get an edit form which appears in a modal. All good so far.

But each
Slot
Slot
also
hasMany
hasMany
of another model called
Sector
Sector
and I want a list of all of the
Sector
Sector
records which are related to the
Slot
Slot
record to be displayed under the
Slot
Slot
edit form within the modal. Preferably I would like this to be the same style as the relation manager. I've obviously set up the
getRelations()
getRelations()
inside the
SlotResource
SlotResource
properly, but it isn't automatically showing under the edit form in the modal as it would do on a normal resource page.

Is this possible, or am I going beyond what it's supposed to do?
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

Hide form field in relation manager create modal
FilamentFFilament / ❓┊help
2y ago
Relation Manager not in modal
FilamentFFilament / ❓┊help
2y ago
Relation manager in action/modal
FilamentFFilament / ❓┊help
3y ago
Accessing Owner form data from Relation Manager create or edit modal.
FilamentFFilament / ❓┊help
3y ago