change to api
This commit is contained in:
@@ -45,7 +45,11 @@ class CustomersController extends Controller
|
||||
$cawangan_info = Http::get(config('api.url') . '/api/cawangan/'. $auth_user['cawangan'])->json();
|
||||
|
||||
$customers_info = Http::get(config('api.url') . '/api/customers/'. $noic)->json();
|
||||
$customer_info = $customers_info[0];
|
||||
if(sizeof($customers_info)!= 0){
|
||||
$customer_info = $customers_info[0];
|
||||
}else{
|
||||
$customer_info = $customers_info;
|
||||
}
|
||||
|
||||
$search = true;
|
||||
if($customer_info){
|
||||
|
||||
Reference in New Issue
Block a user