© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
5 replies
yandos666

Equivalent of novas computed fields?

Just wondering if there is a filament equivalent of computed fields for the table builder: https://nova.laravel.com/docs/4.0/resources/fields.html#computed-fields

I can see that you can use ViewFields but this seems overkill when i just want to return some textual information where a closure would suffice
Fields | Laravel Nova
Master Your Universe
Solution
Do you mean in a table? You can just use a TextColumn. i.e.
TextColumn::make('full_name')->getStateUsing(fn (Model $record): string => "{$record->first_name} {$record->last_name}")
TextColumn::make('full_name')->getStateUsing(fn (Model $record): string => "{$record->first_name} {$record->last_name}")
Jump to solution
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

Computed state in form fields.
FilamentFFilament / ❓┊help
15mo ago
Equivalent of UpdateOrCreate
FilamentFFilament / ❓┊help
2y ago
Computed properties
FilamentFFilament / ❓┊help
3y ago