© 2026 Hedgehog Software, LLC

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

Boolean state for timestamp column

I have a timestamp column that works exactly like
deleted_at
deleted_at
does for soft deletes. Is this the best way to display such a column as a boolean state, or is there a cleaner way? i.e. I want a verified element (non null) to show a check mark ✅ and a red cross for unverified (null), just like the default boolean() columns.
image.png
Solution
Tables\Columns\IconColumn::make('verified_at')
    ->boolean()
    ->getStateUsing(fn ($record): bool => blank($record->verified_at))
Tables\Columns\IconColumn::make('verified_at')
    ->boolean()
    ->getStateUsing(fn ($record): bool => blank($record->verified_at))
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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Null state for table column
FilamentFFilament / ❓┊help
3y ago
I have a boolean column published
FilamentFFilament / ❓┊help
3y ago
formatStateUsing() and a nullable boolean column
FilamentFFilament / ❓┊help
3y ago