$status = Company::with('members', 'members.tasks', 'members.tasks.rating')->findOrFail(1);
my ratings has a column score, how can I add the avg score to every members in this query?
Please sign in or create an account to participate in this conversation.
There's no shortage of content at Laracasts. In fact, you could watch nonstop
for days upon days, and still not see everything!