© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
55 replies
SUNSHINE

Custom Column

Hi guys,
I would like to create a custom column value, but don't know how ? It's a "complex" query (and I have many like that), but don't know how to inject the code on it.

Tables\Columns\TextColumn::make('feedbacks_count')->formatStateUsing(fn (string $state): string => 'my_custom_query'),
Tables\Columns\TextColumn::make('feedbacks_count')->formatStateUsing(fn (string $state): string => 'my_custom_query'),
Solution
Finally @awcodes I find the
->getStateUsing()
->getStateUsing()
method that work as well!
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

Custom column
FilamentFFilament / ❓┊help
2y ago
column page custom
FilamentFFilament / ❓┊help
4mo ago
Custom Column Records
FilamentFFilament / ❓┊help
2y ago
Custom column classes
FilamentFFilament / ❓┊help
2y ago
Next page