F
Filament9mo ago
shaan

is there any titleCase() for filament tables?

to display the table values in title case
2 Replies
Dennis Koch
Dennis Koch9mo ago
->formatStateUsing(fn ($state) => str($state)->titleCase() ?
shaan
shaanOP9mo ago
Method Illuminate\Support\Stringable::titleCase does not exist. ->formatStateUsing(fn (string $state): string => str($state)->title()), this is the right one 🙂 thank you

Did you find this page helpful?