Skip to content
This repository was archived by the owner on Sep 7, 2021. It is now read-only.

Commit b9e7895

Browse files
author
Roman Szymański
committed
feat(arc): Add request variable to disable pagination
1 parent cd38de2 commit b9e7895

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Controllers/AbstractResourceController.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ public function index()
8989

9090
$result = null;
9191

92-
if ($this->pagination) {
92+
if ($this->pagination && request()->get('pagination', true){
9393
$result = $searchQuery->paginate(request()->get('length', 10), ['*'], 'page', request()->get('page', 0));
94-
}
94+
}
9595

9696
if (!$this->pagination) {
9797
$result = $searchQuery->get();

0 commit comments

Comments
 (0)