© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•11mo ago•
15 replies
capins

Hello,I have a Table column like this:

Tables\Columns\TextColumn::make('distances.lenght')
                    ->listWithLineBreaks()
                    ->badge()
                    ->prefix('km ')
                    ->sortable(),
Tables\Columns\TextColumn::make('distances.lenght')
                    ->listWithLineBreaks()
                    ->badge()
                    ->prefix('km ')
                    ->sortable(),

where distances is an HasMany relationship.
The question is: how to change the badge color for each distance and the suffix using a property of the distance? I have a boolean field in distances table (is_competitive), and if it's true I want a color different from the false one
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

Table Column
FilamentFFilament / ❓┊help
3y ago
Table column
FilamentFFilament / ❓┊help
3y ago
I have a boolean column published
FilamentFFilament / ❓┊help
3y ago
I need customize table column
FilamentFFilament / ❓┊help
10mo ago