Ken hace 9 horas
padre
commit
52c1d191f4
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3 1
      app/Services/UserService.php

+ 3 - 1
app/Services/UserService.php

@@ -105,7 +105,9 @@ class UserService extends BaseService
             ->join('wallets', 'users.member_id', '=', 'wallets.member_id')
             ->where(self::getWhere($search))
             ->orderByDesc('wallets.available_balance')
-            ->orderByDesc('users.created_at')->paginate($limit);
+            ->orderByDesc('users.created_at')
+            ->select("users.*")
+            ->paginate($limit);
         return ['total' => $paginator->total(), 'data' => $paginator->items()];
     }