© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
vahnmarty

How to modify ToggleColumn function?

It's amazing how ToggleColumn can update to the backend, but I'm curious about how to customize that.

I have a column
is_primary
is_primary
. Once I toggled a row, the other rows
is_primary
is_primary
must be toggled too. So if I set the
is_primary
is_primary
to
true
true
, the other rows
is_primary
is_primary
will be
false
false
.

ToggleColumn::make('is_primary')
ToggleColumn::make('is_primary')
Solution
You can overwrite the behaviour via
updateStateUsing()
updateStateUsing()
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

ToggleColumn
FilamentFFilament / ❓┊help
10mo ago
How to put action on toggleColumn?
FilamentFFilament / ❓┊help
2y ago
ToggleColumn Pivot
FilamentFFilament / ❓┊help
3y ago
ToggleColumn Action
FilamentFFilament / ❓┊help
3y ago