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(),


thanks
Solution
I don’t know. Sorry. You probably need to append it to another column instead
Was this page helpful?