Skip to content

Commit

Permalink
Return paginator for paginateRaw (fixes #573)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bert Kooij authored and driesvints committed Jan 14, 2022
1 parent 7811f6d commit 6a75cab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ public function paginateRaw($perPage = null, $pageName = 'page', $page = null)

$results = $engine->paginate($this, $perPage, $page);

$paginator = Container::getInstance()->makeWith(LengthAwarePaginator::class, [
return Container::getInstance()->makeWith(LengthAwarePaginator::class, [
'items' => $results,
'total' => $this->getTotalCount($results),
'perPage' => $perPage,
Expand Down

0 comments on commit 6a75cab

Please sign in to comment.