© 2026 Hedgehog Software, LLC

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

Display only `filament-badgeable-column` and not the default `table value`

how do I only display the badge and not the default table value?

BadgeableColumn::make('roles.name')
                    ->badges([
                        Badge::make('employee_badge')
                            ->label('Super Admin')
                            ->color('success')
                            ->visible(fn ($record): bool => $record->roles[0]['name'] == 'super_admin'),
                        Badge::make('admin_badge')
                            ->label('Admin')
                            ->color('success')
                            ->visible(fn ($record): bool => $record->roles[0]['name'] == 'user'),
                    ])->sortable()->searchable()->label(trans('Roles'))
BadgeableColumn::make('roles.name')
                    ->badges([
                        Badge::make('employee_badge')
                            ->label('Super Admin')
                            ->color('success')
                            ->visible(fn ($record): bool => $record->roles[0]['name'] == 'super_admin'),
                        Badge::make('admin_badge')
                            ->label('Admin')
                            ->color('success')
                            ->visible(fn ($record): bool => $record->roles[0]['name'] == 'user'),
                    ])->sortable()->searchable()->label(trans('Roles'))


I have this Roles column where it will display user roles on the table, and I use this
filament-badgeable-column
filament-badgeable-column
where user with super_admin has
super_admin badge
super_admin badge
I want to only display the badge currently it display like this
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

Badgeable column
FilamentFFilament / ❓┊help
3y ago
table column dont display value from resource
FilamentFFilament / ❓┊help
2y ago
How to pass table column default value.
FilamentFFilament / ❓┊help
3y ago
Translate table column value
FilamentFFilament / ❓┊help
3y ago