From 9ac598dbbec266b3d1f70fe6e38038e7929d5c32 Mon Sep 17 00:00:00 2001 From: Bruno Costa Date: Thu, 3 Oct 2024 17:52:19 -0300 Subject: [PATCH] set type int on paginate --- src/Http/Controllers/LogsController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Http/Controllers/LogsController.php b/src/Http/Controllers/LogsController.php index df6808de..0938c6d1 100644 --- a/src/Http/Controllers/LogsController.php +++ b/src/Http/Controllers/LogsController.php @@ -64,7 +64,7 @@ public function index(Request $request) $logQuery->scan(); $logQuery->exceptLevels($excludedLevels); - $logs = $logQuery->paginate($perPage); + $logs = $logQuery->paginate((int) $perPage); $levels = array_values($logQuery->getLevelCounts()); if ($logs->lastPage() < $request->input('page', 1)) {