Skip to content

Commit 68fbcd1

Browse files
committed
Pass plain array to newCollection method
1 parent b862dd1 commit 68fbcd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Builder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ public function paginate($perPage = null, $pageName = 'page', $page = null)
268268

269269
$results = $this->model->newCollection($engine->map(
270270
$this, $rawResults = $engine->paginate($this, $perPage, $page), $this->model
271-
));
271+
)->all());
272272

273273
$paginator = (new LengthAwarePaginator($results, $engine->getTotalCount($rawResults), $perPage, $page, [
274274
'path' => Paginator::resolveCurrentPath(),

0 commit comments

Comments
 (0)