add show all customer by cawangan
This commit is contained in:
@@ -27,6 +27,15 @@ class CustomerController extends Controller
|
||||
return response()->json($customer_all);
|
||||
}
|
||||
|
||||
public function showAllCustomersByCawangan($kodcaw)
|
||||
{
|
||||
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
|
||||
|
||||
$customer = Customer::on($cawangan['mysql'])->get();
|
||||
|
||||
return response()->json($customer);
|
||||
}
|
||||
|
||||
public function showOneCustomerByIC($ic){
|
||||
|
||||
$cawangan_all = Cawangan::on('mysql7')->get();
|
||||
|
||||
Reference in New Issue
Block a user