fix: increase per_page validation limit to 500 across all remaining admin endpoints

This commit is contained in:
ramram1515
2026-06-29 12:26:37 +08:00
parent e76eec1fbd
commit 91df4d05f0
7 changed files with 7 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ class AdminUserController extends ApiController
'status' => ['nullable', 'in:active,suspended,pending'],
'verification_status' => ['nullable', 'in:pending,approved,rejected'],
'q' => ['nullable', 'string', 'max:100'],
'per_page' => ['nullable', 'integer', 'min:1', 'max:100'],
'per_page' => ['nullable', 'integer', 'min:1', 'max:500'],
]);
$perPage = (int) $request->input('per_page', 25);