fix portal

This commit is contained in:
hafifierahman
2021-10-31 08:53:19 +08:00
parent 55e568c14b
commit 3255f56d63
4 changed files with 33 additions and 2 deletions
@@ -223,4 +223,17 @@ class TransactionOnlineController extends Controller
return response()->json($transactionOnline);
}
public function searchSAGOnline(Request $request){
$current = Carbon::now();
$current = new Carbon();
$transaction_online = TransactionOnline::on('mysql7')->where([['norujukan',$request->norujukan],['status','PAID'],['update_status',0],['tarikh',$current->toDateString()]])->first();
if($transaction_online){
return response()->json(true);
}else{
return response()->json(false);
}
}
}