See Tweaking Eloquent relations – how to get hasMany relation count efficiently? and Querying relations in Laravel for strategies you could adopt.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community