© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
NolanN

Can I show records from 2 relationship in one relation manager?

I have a
Source
Source
model that has
fields
fields
and
definition
definition
relationships. The
definition
definition
relationship also has a
fields
fields
relationship. The
Source
Source
model can return a list of validation rules that are generated by get the
fields
fields
from the
definition
definition
and then overrides any rules that have a title that match a
field
field
related to the
Source
Source
. What I want is to have a relation manager on the
SourceResource
SourceResource
that can show all the
fields
fields
related to the
definition
definition
in a disabled state and the
fields
fields
related to the
Source
Source
in an enabled state. Is this possible to in a relation manager? Do I need to create a custom page possibly?
Solution
I think I've got it after all. I created a
definitionFields
definitionFields
relationship like this:
    public function definitionFields()
    {
        return $this->definition->fields();
    }
    public function definitionFields()
    {
        return $this->definition->fields();
    }
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

Show records with Relation Manager
FilamentFFilament / ❓┊help
2y ago
Conditionally show relation manager
FilamentFFilament / ❓┊help
2y ago
Conditionally show Relationship (manager)
FilamentFFilament / ❓┊help
2y ago