© 2026 Hedgehog Software, LLC

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

How to change the content of TextColumn

Tables\Columns\TextColumn::make('status')
->badge()->color(fn (bool $state): bool => match ($state) {
true => 'success',
false => 'danger',
})
The TextColumn will display 0 or 1 (true or false). How to make it display 'True' or 'False' ?
Solution
https://filamentphp.com/docs/3.x/tables/columns/text#custom-formatting
Text column - 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
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

How to dynamically change the Label of a TextColumn.
FilamentFFilament / ❓┊help
3y ago
How to use TextColumn instead of SelectColumn?
FilamentFFilament / ❓┊help
3y ago
Change the table content
FilamentFFilament / ❓┊help
3y ago
TextColumn tooltip displays content and theme
FilamentFFilament / ❓┊help
3y ago