Skip to content

Commit

Permalink
🔧 pagination improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
acidjazz committed Sep 13, 2018
1 parent cc2d86b commit 0c85a6d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/MetApiController.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,8 @@ protected function addMeta($name, $value) {

protected function paginate($collection) {

$collection = $collection->paginate();

$paginator = new Paginator(
$collection->total(),
$collection->perPage(),
Expand Down

0 comments on commit 0c85a6d

Please sign in to comment.