Skip to content

Commit

Permalink
Removes direct ->query call
Browse files Browse the repository at this point in the history
Refs #276
  • Loading branch information
daftspunk committed Dec 14, 2017
1 parent aefc32a commit 4d1418e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Database/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public function paginate($perPage = 15, $currentPage = null, $columns = ['*'], $
}

$total = $this->toBase()->getCountForPagination();
$this->query->forPage((int) $currentPage, (int) $perPage);
$this->forPage((int) $currentPage, (int) $perPage);

return new LengthAwarePaginator($this->get($columns), $total, $perPage, $currentPage, [
'path' => Paginator::resolveCurrentPath(),
Expand Down

0 comments on commit 4d1418e

Please sign in to comment.