diff --git a/src/Http/Controllers/AdminController.php b/src/Http/Controllers/AdminController.php index 9d7dda1..3c1aa5f 100644 --- a/src/Http/Controllers/AdminController.php +++ b/src/Http/Controllers/AdminController.php @@ -107,7 +107,7 @@ private function data(Request $request): Response ); return response([ - 'draw' => $request->getAttribute('draw'), + 'draw' => $request->getQueryParams()['draw'] ?? '1', 'recordsTotal' => $total, 'recordsFiltered' => $total, 'data' => $rows->map(function($row) {