Ларавел с обратным вызовом
$users = User::with(['posts' => function($query)
{
$query->orderBy('created_at', 'desc');
}])->get();
Lokesh003
$users = User::with(['posts' => function($query)
{
$query->orderBy('created_at', 'desc');
}])->get();