test ipay88

This commit is contained in:
LAPTOP-DGCU80CH\user1
2020-12-20 15:54:51 +08:00
parent c5e25d9256
commit 3d5697c065
2 changed files with 10 additions and 0 deletions
@@ -27,6 +27,14 @@ class CustomerController extends Controller
return response()->json($customer_all);
}
public function getLatestCustomer($kodcaw){
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();
$customer = Customer::on($cawangan['mysql'])->orderBy('nosiri','desc')->first();
return response()->json($customer);
}
public function showAllCustomersByCawangan($kodcaw)
{
$cawangan = Cawangan::on('mysql7')->where('kodcaw','=',$kodcaw)->first();