© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
VIIKKK

conditionally showing relationship.

Hey all, I'm using the table builder.
I have a model Customer that has a many to many relationship with Customer_types.
I want to conditionally display a check icon if the id is in the relationship. (e.g $customer->types->contain('id',$id)) and another icon if returns false.

Whats best practice for this?
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

Conditionally show Relationship (manager)
FilamentFFilament / ❓┊help
2y ago
Conditionally showing TextInput or changing default
FilamentFFilament / ❓┊help
2y ago
Relationship manager not showing attribute.
FilamentFFilament / ❓┊help
15mo ago
how to load relationship() on Forms\Components\Fieldset conditionally?
FilamentFFilament / ❓┊help
3y ago