From 2209eedb926c54990a9cfd8240ab77c6b7dcb188 Mon Sep 17 00:00:00 2001 From: Gesang Paudra J Date: Wed, 12 Jun 2024 16:11:42 +0700 Subject: [PATCH] refactor Kasbon view model --- app/Models/Kasbonview.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Models/Kasbonview.php b/app/Models/Kasbonview.php index 388e91e..79507ce 100644 --- a/app/Models/Kasbonview.php +++ b/app/Models/Kasbonview.php @@ -77,9 +77,6 @@ public function getKasbonData(Request $request) $kasbonData = Kasbonview::whereMonth('updated_at', $month) ->whereYear('updated_at', $year) ->get(); - - return response()->json($kasbonData); // Ensure this returns JSON + return response()->json($kasbonData); } - - }