add new db
This commit is contained in:
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user