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();
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server