diff --git a/app/Http/Controllers/GadaiController.php b/app/Http/Controllers/GadaiController.php index 154e086..359b9c0 100644 --- a/app/Http/Controllers/GadaiController.php +++ b/app/Http/Controllers/GadaiController.php @@ -988,8 +988,8 @@ class GadaiController extends Controller }) ->where('transaction.kodcaw','=',$kodcaw) ->where('transaction.trans_type','=','A') - ->where('transaction.created_at','>=',$request->mula) - ->where('transaction.created_at','<=',$request->akhir) + ->whereDate('transaction.created_at', '>=', $request->mula) + ->whereDate('transaction.created_at', '<=', $request->akhir) ->orderBy('trans.tarikh_bayaran') ->orderBy('transaction.teller') ->get();