|
|
@@ -102,9 +102,7 @@ class UserService extends BaseService
|
|
|
{
|
|
|
$limit = isset($search['limit']) ? $search['limit'] : 15;
|
|
|
$paginator = static::$MODEL::where(self::getWhere($search))->with(['wallet'])
|
|
|
-
|
|
|
->orderByDesc('users.created_at')->paginate($limit);
|
|
|
-
|
|
|
return ['total' => $paginator->total(), 'data' => $paginator->items()];
|
|
|
}
|
|
|
|