© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
6 replies
shahzad

Sortable is not working on Relation Manager class:

I'm facing a weird bug that sortable is not working on the relationship manager class. I have added the code below:
Tables\Columns\TextColumn::make('customer.name')
                    ->searchable()
                    ->sortable(),
Tables\Columns\TextColumn::make('customer.name')
                    ->searchable()
                    ->sortable(),

I'm using default search as well but I even tried removing that but still, it was not working. I need help to make it work.
Appreciate your help!
Solution
Hi, thank you for your help it was the issue with the model, I was using latest() method in the relationship method, and after removing that it is working fine. Thanks again!
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

Sortable relation...
FilamentFFilament / ❓┊help
2y ago
Edit action not working on relation manager
FilamentFFilament / ❓┊help
3y ago
Is ->sortable() working on V3?
FilamentFFilament / ❓┊help
3y ago
Edit not working in relation manager.
FilamentFFilament / ❓┊help
3y ago