© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
3 replies
Positiverain

Advanced toggle column to a table

ToggleColumn::make('collected')
ToggleColumn::make('collected')

My database table doesn't have an
is_collected
is_collected
column. Instead, I have a
collected_by
collected_by
column (foreign key to a collectors table) and a
collected_at
collected_at
timestamp. How can I customize the ToggleColumn to update the
collected_by
collected_by
and
collected_at
collected_at
columns when toggled on, ideally setting
collected_by
collected_by
to
auth()->user()->collector_id
auth()->user()->collector_id
? By default the toggle sets
is_collected
is_collected
to 1 but that column does not exist.
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

halt table toggle column
FilamentFFilament / ❓┊help
3y ago
How To Disable a Table Column Reactively After Toggle Column Action
FilamentFFilament / ❓┊help
3y ago
TablesRenderHook after table filter / toggle columns
FilamentFFilament / ❓┊help
6mo ago
Toggle-column
FilamentFFilament / ❓┊help
2y ago