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 520ebe0 commit dea4d2dCopy full SHA for dea4d2d
src/Traits/Helpers/PaginationHelpers.php
@@ -74,7 +74,7 @@ public function getPerPage(): int
74
75
public function getDefaultPerPage(): int
76
{
77
- return $this->defaultPerPage ?? ($this->getPerPageAccepted()[0] ?? 10);
+ return (in_array((int) $this->defaultPerPage, $this->getPerPageAccepted()) ? $this->defaultPerPage : ($this->getPerPageAccepted()[0] ?? 10);
78
}
79
80
/**
0 commit comments