Ken 3 dni temu
rodzic
commit
cec8fd4b2c
1 zmienionych plików z 1 dodań i 0 usunięć
  1. 1 0
      app/Services/PaymentOrderService.php

+ 1 - 0
app/Services/PaymentOrderService.php

@@ -107,6 +107,7 @@ class PaymentOrderService extends BaseService
         $limit = isset($search['limit']) ? $search['limit'] : 15;
         $paginator = self::model()::where(self::getWhere($search))
             ->with(['userInfo'])
+            ->orderByDesc('created_at')
             ->paginate($limit);
         return ['total' => $paginator->total(), 'data' => $paginator->items()];
     }