fix portal
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user