edit code for Mobile

This commit is contained in:
Fiza Ali
2021-02-03 11:48:20 +08:00
parent 42d2f46e28
commit 22a1bfa082
+3 -4
View File
@@ -443,7 +443,7 @@ class CustomerController extends Controller
}
else
{
return response()->json('Data Not Found');
return $array_cust;
}
}
}
@@ -474,13 +474,12 @@ class CustomerController extends Controller
}
}
public function insertAkaunBankMobile(Request $request)
{
$cawangan_all = Cawangan::on('mysql7')->get(); //return all 8 branches
$cawangan_all = Cawangan::on('mysql7')->get();
foreach($cawangan_all as $index=>$cawangan)
{
$customer = Customer::on($cawangan['mysql']) //search Customer on dtabase cawangan (1-8)
$customer = Customer::on($cawangan['mysql'])
->where('kplama','=',$request->nokp)
->orWhere('kpbaru','=',$request->nokp)
->first();