diff --git a/app/Http/Controllers/TunaiController.php b/app/Http/Controllers/TunaiController.php index 6466592..904d2ec 100644 --- a/app/Http/Controllers/TunaiController.php +++ b/app/Http/Controllers/TunaiController.php @@ -143,7 +143,12 @@ class TunaiController extends Controller ->where([['kodcaw','=',$kodcaw],['tarikh','=',$current->toDateString()],['kodlaluan','=',$request->kodlaluan]]) ->orderBy('tarikh','desc') ->first(); - return response()->json($tunai); + return response()->json($tunai) + ->withHeaders([ + 'Pragma' => 'no-cache', + 'Cache-Control' => 'no-store', + 'Expires' => 'Mon, 01 Jan 1990 00:00:00 GMT', + ]); } @@ -640,5 +645,3 @@ class TunaiController extends Controller return response()->json($requestteller); } } - -