adding backup imbang duga

This commit is contained in:
hafifierahman
2022-12-21 01:51:27 +08:00
parent bc574559cf
commit 4a360cfa60
2 changed files with 14 additions and 0 deletions
@@ -1503,4 +1503,17 @@ class LaporanController extends Controller
return response()->json($e,500);
}
}
public function SemakanBackupImbangDuga($kodcaw,Request $request){
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$response = imbangdugabackup::on($cawangan['mysql'])->where('tarikh',$request->tarikh)->first()->toArray();
if($response){
return response()->json($response,200);
}else{
return response('notfound');
}
}
}