From 3c6200ca7dad14b5a80e9e768a1295e5e8d31545 Mon Sep 17 00:00:00 2001 From: Anush <33168386+AnushK-Fro@users.noreply.github.com> Date: Sat, 9 Nov 2024 21:06:26 -0500 Subject: [PATCH] Increases pagination limit to 999999 for IP Addresses --- app/Http/Controllers/Admin/AddressPools/AddressController.php | 2 +- app/Http/Controllers/Admin/Nodes/AddressController.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Admin/AddressPools/AddressController.php b/app/Http/Controllers/Admin/AddressPools/AddressController.php index e2c4f2409e1..5f287fc98e1 100644 --- a/app/Http/Controllers/Admin/AddressPools/AddressController.php +++ b/app/Http/Controllers/Admin/AddressPools/AddressController.php @@ -48,7 +48,7 @@ public function index(Request $request, AddressPool $addressPool) AllowedFilter::exact('server_id')->nullable(), ], ) - ->paginate(min($request->query('per_page', 50), 100))->appends( + ->paginate(min($request->query('per_page', 50), 999999))->appends( $request->query(), ); diff --git a/app/Http/Controllers/Admin/Nodes/AddressController.php b/app/Http/Controllers/Admin/Nodes/AddressController.php index c7bd5afb942..ff633ec02b3 100644 --- a/app/Http/Controllers/Admin/Nodes/AddressController.php +++ b/app/Http/Controllers/Admin/Nodes/AddressController.php @@ -25,7 +25,7 @@ public function index(Request $request, Node $node) new FiltersAddressWildcard(), ), AllowedFilter::exact('server_id')->nullable()], ) - ->paginate(min($request->query('per_page', 50), 100))->appends( + ->paginate(min($request->query('per_page', 50), 999999))->appends( $request->query(), );