© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
9 replies
datarecall

Custom Icon Column

Trying to figure out what I am doing wrong here, I am viewing a User and want to show a checkmark on the user resource if they have a gallery item and they have verified their email. It is making the column but the column is blank.


Tables\Columns\IconColumn::make('Onboarded')
                    ->icon(function ($record) {
                        return $record->profile->hasMedia('gallery')
                            && $record->email_verified_at !== NULL
                            ? 'heroicon-o-clock'
                            : 'heroicon-o-check-circle';
                    }),
Tables\Columns\IconColumn::make('Onboarded')
                    ->icon(function ($record) {
                        return $record->profile->hasMedia('gallery')
                            && $record->email_verified_at !== NULL
                            ? 'heroicon-o-clock'
                            : 'heroicon-o-check-circle';
                    }),
image.png
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

custom icon
FilamentFFilament / ❓┊help
3y ago
Custom column
FilamentFFilament / ❓┊help
2y ago
Custom Column
FilamentFFilament / ❓┊help
3y ago
Custom Icon SVG
FilamentFFilament / ❓┊help
3y ago