We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e2a62ec commit 2e0b415Copy full SHA for 2e0b415
src/Traits/WithPerPagePagination.php
@@ -23,7 +23,7 @@ public function mountWithPerPagePagination(): void
23
if (in_array(session()->get($this->tableName.'-perPage', $this->perPage), $this->perPageAccepted, true)) {
24
$this->perPage = session()->get($this->tableName.'-perPage', $this->perPage);
25
} else {
26
- $this->perPage = 10;
+ $this->perPage = $this->perPageAccepted[0] ?? 10;
27
}
28
29
0 commit comments