Merge branch 'second' into 'main'

fix api_url

See merge request online-sistem1/arrahn-portal!28
This commit is contained in:
hafifie rahman
2022-05-18 06:52:47 +00:00
+1 -1
View File
@@ -17,7 +17,7 @@ class TacController extends Controller
if($tac){
$CustomerInfo = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/customers/' . $request->icno)->json();
$poskod = Http::withOptions(['verify' => config('app.api_verify')])->get($api_url . '/api/poskod/' . $CustomerInfo['poskod'])->json();
$poskod = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/poskod/' . $CustomerInfo['poskod'])->json();
$daerah = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/daerah/' . $poskod['koddaerah'])->json();
$negeri =Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') .'/api/negeri/' . $poskod['kodnegeri'])->json();