fix customer admin
This commit is contained in:
@@ -63,6 +63,23 @@ class CustomerController extends Controller
|
||||
return response()->json($customer);
|
||||
}
|
||||
|
||||
public function showOneCustomerByICAdmin(Request $request){
|
||||
|
||||
// $cawangan_all = Cawangan::on('mysql7')->get();
|
||||
// $customer_all = [];
|
||||
// foreach($cawangan_all as $index=>$cawangan){
|
||||
$customer = Customer::on('mysql7')
|
||||
->where('kplama','=',$request->ic)
|
||||
->orWhere('kpbaru','=',$request->ic)
|
||||
->first();
|
||||
// if($customer != null){
|
||||
// array_push($customer_all,$customer);
|
||||
// }
|
||||
// }
|
||||
|
||||
return response()->json($customer);
|
||||
}
|
||||
|
||||
public function showOneCustomerByICMobile($ic){
|
||||
|
||||
$cawangan_all = Cawangan::on('mysql7')->get();
|
||||
|
||||
Reference in New Issue
Block a user