© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
8 replies
Mehmet K.

Badge Column Problem

TextColumn::make('translate_status')
->badge()
->color(fn (string $state): string => match ($state) {
'0' => 'gray',
'1' => 'warning',
'published' => 'success',
'rejected' => 'danger',
})

In v2, I could previously name the badge column. I have boolean values true and false, but I cannot assign special names to them. Now it says 0 or 1. Isn't there a solution to this?
Solution
Check the upgrade guide:
https://filamentphp.com/docs/3.x/tables/upgrade-guide#badgecolumnenum-removed
Upgrading from v2.x - Table Builder - Filament
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

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

translate badge column
FilamentFFilament / ❓┊help
2y ago
Table column badge
FilamentFFilament / ❓┊help
2y ago
Badge N + 1 problem
FilamentFFilament / ❓┊help
2y ago
Showing icons in Table Column Badge
FilamentFFilament / ❓┊help
2y ago