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' ?
2 Replies

Did you find this page helpful?