FilamentF
Filament3y ago
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'))

I have this Roles column where it will display user roles on the table, and I use this filament-badgeable-column where user with super_admin has super_admin badge I want to only display the badge currently it display like this
image.png
Was this page helpful?