© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•5mo ago•
5 replies
Strangler

Dynamic toggle columns based on relationship

So, I have this model Product, which links to ProductCountry (which is also linked to a Country)
In my Product-table I would like to have a column for every Country with a toggle-button which indicates whether that product is enabled for that country.
When clicking the toggle-button, it should either add the ProductCountry-record to the database, or delete it.

How would I make this possible in Filamentphp?
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

On/off toggle based on relationship? (Spatie/Laravel Permission)
FilamentFFilament / ❓┊help
3y ago
Toggle columns grid
FilamentFFilament / ❓┊help
3y ago
Dynamic columns
FilamentFFilament / ❓┊help
3y ago
Dynamic getTableQuery on Toggle Filter
FilamentFFilament / ❓┊help
3y ago