From 6bb56b94e1fc41ad277459301515da6901c13719 Mon Sep 17 00:00:00 2001 From: hafifierahman Date: Sun, 19 Sep 2021 08:09:49 +0800 Subject: [PATCH] add each cawangan nama cawangan --- app/Http/Controllers/CustomerController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/CustomerController.php b/app/Http/Controllers/CustomerController.php index 20d3ddc..905b3d3 100644 --- a/app/Http/Controllers/CustomerController.php +++ b/app/Http/Controllers/CustomerController.php @@ -719,9 +719,9 @@ class CustomerController extends Controller ->select('kodcaw') ->where('nokp', '=', $ic) ->first(); - + if($customer) - array_push($custcawangan, $customer); + array_push($custcawangan,['kodcaw' => $customer['kodcaw'], 'namacawangan' => $cawangan['details_caw']]); } return response()->json($custcawangan);