check tag lelong

This commit is contained in:
Amirah22
2023-04-03 08:59:31 +08:00
parent 770c59a3c6
commit c759212047
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -603,6 +603,18 @@ class LelongController extends Controller
}
}
public function checkTagLelong(Request $request)
{
$cawangan = Cawangan::on('mysql7')->where('kodcaw', '=', $request->kodcaw)->first();
$lelong = Lelong::on($cawangan['mysql'])
->where('norujukan', '=', $request->norujukan)
->select('norujukan', 't_lelong')
->first();
return response()->json($lelong);
}
public function keluarLelong(Request $request){
$current = Carbon::now();
$current = new Carbon();