From 6a75cabec0b314b2ae1cc904b9430e8e0d7b8490 Mon Sep 17 00:00:00 2001 From: Bert Kooij Date: Fri, 14 Jan 2022 12:22:41 +0100 Subject: [PATCH] Return paginator for paginateRaw (fixes #573) --- src/Builder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Builder.php b/src/Builder.php index be0f8f53..851fcf28 100644 --- a/src/Builder.php +++ b/src/Builder.php @@ -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,