edit code for Mobile
This commit is contained in:
@@ -443,7 +443,7 @@ class CustomerController extends Controller
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return response()->json('Data Not Found');
|
return $array_cust;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -474,13 +474,12 @@ class CustomerController extends Controller
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function insertAkaunBankMobile(Request $request)
|
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)
|
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)
|
->where('kplama','=',$request->nokp)
|
||||||
->orWhere('kpbaru','=',$request->nokp)
|
->orWhere('kpbaru','=',$request->nokp)
|
||||||
->first();
|
->first();
|
||||||
|
|||||||
Reference in New Issue
Block a user