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