© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
7 replies
wandiaprianto

How to searchable and sortable my custom column?

Help me, How to searchable and sortable my custom column?

here is my code:
TextColumn::make('description')
    ->getStateUsing(function ($record) {
        return $record->brand->name . ' ' . $record->model->name . ' ' . $record->type->name . ' ' . $record->kind->name . ' (' . $record->series->name . ') ' . number_format(doubleval($record->cylinder->volume / 1000), 1) . ' ' . $record->transmission->name . ' ' . $record->gear->name . ' ' . $record->fuel->name . ' ' . $record->color->name . ' (' . $record->year->name . ') ' . $record->row->name;
    })
    ->wrap(),
TextColumn::make('description')
    ->getStateUsing(function ($record) {
        return $record->brand->name . ' ' . $record->model->name . ' ' . $record->type->name . ' ' . $record->kind->name . ' (' . $record->series->name . ') ' . number_format(doubleval($record->cylinder->volume / 1000), 1) . ' ' . $record->transmission->name . ' ' . $record->gear->name . ' ' . $record->fuel->name . ' ' . $record->color->name . ' (' . $record->year->name . ') ' . $record->row->name;
    })
    ->wrap(),


thanks
Solution
I don’t know. Sorry. You probably need to append it to another column instead
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

How to make a custom model attribute column searchable and sortable?
FilamentFFilament / ❓┊help
9mo ago
how to make custom column sortable
FilamentFFilament / ❓┊help
3y ago
Sortable and Searchable in pivot column not working
FilamentFFilament / ❓┊help
5mo ago
How to make custom datetime column sortable?
FilamentFFilament / ❓┊help
2y ago