© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
TiBiBa

How to dynamically set getRelations()?

Hi all. For a user resource view page we have multiple relations set through the RelationManagers. However, dependent on the current type of user (admin, customer etc.) we are looking at displaying different relationships as some will always be empty for specific types of users. The type of user is an attribute on our User model. Is there any way to set these relations dynamically in getRelations() to prevent redundant tabs from showing? Thanks in advance!
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

GetRelations another getrelations
FilamentFFilament / ❓┊help
17mo ago
set $columnSpan dynamically?
FilamentFFilament / ❓┊help
3y ago
How to dynamically set defaults for Repeater fields?
FilamentFFilament / ❓┊help
12mo ago
Dynamically set current panel
FilamentFFilament / ❓┊help
2y ago