add new db

This commit is contained in:
Afiq
2021-01-11 17:59:46 +08:00
parent dad0e2a9a1
commit 27155b739c
21 changed files with 297 additions and 241 deletions
+3 -3
View File
@@ -150,13 +150,13 @@ class TunaiController extends Controller
$current = Carbon::now();
$current = new Carbon();
$requestteller=RequestTeller::on('mysql7')->where([['kodcaw','=',$kodcaw],['KodLaluan','=',$kodlaluan],['update','=',0]])->get();
$requestteller=RequestTeller::on('mysql7')->where([['kodcaw','=',$kodcaw],['kodlaluan','=',$kodlaluan],['update','=',0]])->get();
return response()->json($requestteller);
}
public function updateRequestTeller($kodcaw,$kodlaluan,Request $request)
{
$requestteller = RequestTeller::on('mysql7')->where([['no','=',$request->no],['kodcaw','=',$kodcaw],['KodLaluan','=',$kodlaluan],['update','=',0]])->update(array(
$requestteller = RequestTeller::on('mysql7')->where([['no','=',$request->no],['kodcaw','=',$kodcaw],['kodlaluan','=',$kodlaluan],['update','=',0]])->update(array(
'update' => 1
@@ -173,7 +173,7 @@ class TunaiController extends Controller
'tarikh' => $current->toDateString(),
'kodcaw' => $kodcaw,
'KodLaluan'=> $kodlaluan,
'kodlaluan'=> $kodlaluan,
'modal'=>$request->modal,
'serahan'=>$request->serahan,
'update' => '0'