F
Filament16mo 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)....
Jump to solution
1 Reply
Solution
cheesegrits
cheesegrits16mo ago
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).
Want results from more Discord servers?
Add your server