|
@@ -62,8 +62,15 @@ class User extends Controller
|
|
|
'username' => ['nullable', 'string', 'min:1'],
|
|
'username' => ['nullable', 'string', 'min:1'],
|
|
|
]);
|
|
]);
|
|
|
$search['limit'] = 3;
|
|
$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) {
|
|
} catch (ValidationException $e) {
|
|
|
return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
|
|
return $this->error(HttpStatus::CUSTOM_ERROR, $e->validator->errors()->first());
|
|
|
} catch (Exception $e) {
|
|
} catch (Exception $e) {
|