© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
1 reply
Ontamine&Vue

groupby another relationship column in chart

Hi everyone, i dont know how to group by a relationship column like: $data = Trend::query(User::query()->with('service:name,id')->groupBy('service_id'))
->between(
now()->startOfYear(),
now()
)
->perYear()
->count();
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

Column relationship
FilamentFFilament / ❓┊help
3y ago
Relationship Column
FilamentFFilament / ❓┊help
3y ago
JSON relationship column in table
FilamentFFilament / ❓┊help
14mo ago