diff -r 4a3899b6a7ed -r 766af1228b05 server/src/app/Repositories/DocumentRepository.php --- a/server/src/app/Repositories/DocumentRepository.php Sun Oct 16 22:23:31 2016 +0530 +++ b/server/src/app/Repositories/DocumentRepository.php Sun Oct 16 23:19:57 2016 +0530 @@ -21,6 +21,17 @@ public function paginateAll($perPage = 15, $pageName = 'page', $page = null); /** + * Paginate filtered document as a paginator. + * + * @param array $filters + * @param int $perPage + * @param string $pageName + * @return \Illuminate\Contracts\Pagination\LengthAwarePaginator + */ + public function paginate($filters = [], $perPage = 15, $pageName = 'page', $page = null, $sort = null); + + + /** * Resolve lexvo id for all documents in the list * this allow to optimise the call of lexvo repository */