FilamentF
Filament2y ago
BBB

Sortable relation...

Hello everyone!

This works:
Tables\Columns\TextColumn::make('user.lastname')->sortable()

This obviously does not work:
Tables\Columns\TextColumn::make('user.full_name')->sortable()

full_name is a combination of lastname and firstname.

How should I proceed? Should I create a scope since it's in a relationship?

Any help? Thanks in advance!
Was this page helpful?