FilamentF
Filament3y ago
Liam

Computed table values

I want add something in my table that is a computed value from multiple model fields. Is this possible without a model attribute?
Solution
You can use ...

->formatStateUsing(fn (string $state, Model $record) => // )

... although this won't be searchable (or at least, attributes from other fields won't be).
Was this page helpful?