Yes you can do something like this
User::with(array('products' => function($query) {
$query->orderBy('created_at', 'desc');
}))->get();
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community