I have a model, Reservation, which hasMany serviceDates.
Is it possible in Laravel (5.3) to sort my Reservations by their first service dates 'date' column?
I've tried this...
$reservations = Reservation::with(['serviceDates' => function ($q) {
$q->orderBy('date', 'asc');
}])->get();
...but this doesn't seem to work because a Reservation hasMany serviceDates and doesn't have have 1 serviceDate.