diff --git a/src/Repositories/Eloquent/UserRepository.php b/src/Repositories/Eloquent/UserRepository.php index 733ed2a..d777b25 100644 --- a/src/Repositories/Eloquent/UserRepository.php +++ b/src/Repositories/Eloquent/UserRepository.php @@ -109,6 +109,14 @@ public function list(array $filters = []) $query->select('users.*'); } + if (!empty($filters['limit'])) { + $query->limit($filters['limit']); + } + + if (!empty($filters['offset'])) { + $query->offset($filters['offset']); + } + //Execute Output return $this->executeQuery($query, $filters);