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 2e0b415 commit e70f92eCopy full SHA for e70f92e
src/Traits/WithPerPagePagination.php
@@ -35,7 +35,7 @@ public function updatedPerPage($value): void
35
if (in_array(session()->get($this->tableName.'-perPage', $this->perPage), $this->perPageAccepted, true)) {
36
session()->put($this->tableName.'-perPage', (int) $value);
37
} else {
38
- session()->put($this->tableName.'-perPage', 10);
+ session()->put($this->tableName.'-perPage', $this->perPageAccepted[0] ?? 10);
39
}
40
41
$this->resetPage();
0 commit comments