$deliveries = Delivery::with(array('order' => function($query)
{ $query->where('orders.user_id', $customerID); $query->orderBy('orders.created_at', 'DESC'); })) ->orderBy('date') ->get();Programing Coderfunda March 30, 2021 No comments
$deliveries = Delivery::with(array('order' => function($query)
{ $query->where('orders.user_id', $customerID); $query->orderBy('orders.created_at', 'DESC'); })) ->orderBy('date') ->get();
0 comments:
Post a Comment
Thanks