© 2026 Hedgehog Software, LLC

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

Repeater with relationship and group by

Hi i am trying to use repeater in a form schema. Where i would like to group by a column name.
Sample code:
Repeater::make('cash_out')
->schema([
Placeholder::make('month')
->label('')
->content(static fn ($state) => $state),
Placeholder::make('total')
->label('')
->content(static fn ($state) => $state),
])
->relationship('cash', function ($query){
return $query->select('month')
->selectRaw('SUM(amount) as total')
->groupBy('month');
})
->columns(1),
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

issue with repeater and relationship
FilamentFFilament / ❓┊help
7mo ago
Repeater with hasMany relationship
FilamentFFilament / ❓┊help
3y ago
Repeater ->relationship() inside multiple Group ->relationship() in a form issue
FilamentFFilament / ❓┊help
4mo ago
Select Filter with Group By from Column not Relationship
FilamentFFilament / ❓┊help
2y ago