withOptions(['verify' => config('app.api_verify')]) ->get($pkbUrl . $endpoint, ['ic' => $icno]), ]; if ($koopUrl !== $pkbUrl) { $requests[] = $pool->withOptions(['verify' => config('app.api_verify')]) ->get($koopUrl . $endpoint, ['ic' => $icno]); } return $requests; }); return [$responses[0]->json(), isset($responses[1]) ? $responses[1]->json() : []]; } }