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 fbfdb66 commit 0241129Copy full SHA for 0241129
src/Http/Controllers/BaseController.php
@@ -621,11 +621,15 @@ protected function keyName(): string
621
*/
622
protected function shouldPaginate(Request $request, int $paginationLimit): bool
623
{
624
+ if (property_exists($this, 'paginationDisabled')) {
625
+ return ! $this->paginationDisabled;
626
+ }
627
+
628
if (app()->bound('orion.paginationEnabled')) {
629
return app()->make('orion.paginationEnabled');
630
}
631
- return !property_exists($this, 'paginationDisabled');
632
+ return true;
633
634
635
/**
0 commit comments