Ken il y a 5 jours
Parent
commit
b125803af1
1 fichiers modifiés avec 8 ajouts et 1 suppressions
  1. 8 1
      app/Http/Controllers/admin/User.php

+ 8 - 1
app/Http/Controllers/admin/User.php

@@ -62,8 +62,15 @@ class User extends Controller
                 'username' => ['nullable', 'string', 'min:1'],
             ]);
             $search['limit'] = 3;
+            $result['total'] = 8;
+            $result['data'] =  \App\Models\User::where(UserService::getWhere($search))
+                ->with(['wallet'])->forPage($search['page'], $search['limit'])
+                ->get();
 
-            $result = UserService::paginate($search);
+
+
+
+//            $result = UserService::paginate($search);
         } catch (ValidationException $e) {
             return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
         } catch (Exception $e) {