© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
1 reply
MeniV

Sorting repeatableEntry

Is it possible to sort a repeatableEntry in an Infolist using data from a relationship?
I would like to sort using 'startdate' from a relationship called 'documents':

RepeatableEntry::make('persons')  // relationship persons
                    ->schema([
                        TextEntry::make('datum')
                            ->getStateUsing(fn($record) => $record->documents()->pluck('startdate'))
                            ->date('d-m-Y'),
                        TextEntry::make('fullname')
                            ->getStateUsing(fn($record) => $record->fullname()),
RepeatableEntry::make('persons')  // relationship persons
                    ->schema([
                        TextEntry::make('datum')
                            ->getStateUsing(fn($record) => $record->documents()->pluck('startdate'))
                            ->date('d-m-Y'),
                        TextEntry::make('fullname')
                            ->getStateUsing(fn($record) => $record->fullname()),
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

RepeatableEntry
FilamentFFilament / ❓┊help
3y ago
RepeatableEntry relationship
FilamentFFilament / ❓┊help
2w ago
RepeatableEntry relationship
FilamentFFilament / ❓┊help
13mo ago
Sort RepeatableEntry
FilamentFFilament / ❓┊help
3y ago