From 0c85a6d9c56ed1ffbe449fa4af5003da0b35793e Mon Sep 17 00:00:00 2001 From: kevin olson Date: Wed, 12 Sep 2018 23:52:37 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20pagination=20improvements?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/MetApiController.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/MetApiController.php b/src/MetApiController.php index 3d542a3..0a2f642 100644 --- a/src/MetApiController.php +++ b/src/MetApiController.php @@ -49,6 +49,8 @@ protected function addMeta($name, $value) { protected function paginate($collection) { + $collection = $collection->paginate(); + $paginator = new Paginator( $collection->total(), $collection->perPage(),