Limit per page to 5000
This commit is contained in:
parent
281975c869
commit
0d6c8f05e1
1 changed files with 1 additions and 1 deletions
|
|
@ -555,7 +555,7 @@ class BaseController extends Controller
|
|||
private function resolveQueryLimit(): int
|
||||
{
|
||||
if (request()->has('per_page')) {
|
||||
return abs((int)request()->input('per_page', 20));
|
||||
return min(abs((int)request()->input('per_page', 20)), 5000);
|
||||
}
|
||||
|
||||
return 20;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue