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,