I get my data as follows: $completes = Complete::with(['answers', 'survey.location'])->orderBy('created_at', 'DESC')->get();
How can I get all completes
where survey.location = 1
?
I've tried doing it like Location::where()->with('completes')
etc but I need it to be ordered by completes
without getting grouped by location
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire