© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
4 replies
BBB

Sortable relation...

Hello everyone!

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

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

full_name
full_name
is a combination of
lastname
lastname
and
firstname
firstname
.

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

Any help? Thanks in advance!
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

Sortable by morph-relation
FilamentFFilament / ❓┊help
3y ago
Sortable with nested relations
FilamentFFilament / ❓┊help
3y ago
Sortable is not working on Relation Manager class:
FilamentFFilament / ❓┊help
3y ago
sortable() in second-level relationship
FilamentFFilament / ❓┊help
2y ago