imbangduga = $imbangduga; parent::__construct(); } /** * Execute the console command. * * @return int */ public function handle() { $array_cawangan = Http::withOptions(['verify' => config('app.api_verify')])->get(config('api.url') . '/api/cawangan')->json(); $zone = $this->option('zone'); if($zone < 1 || $zone > 3) { throw new Exception('The zone is not in the range!'); } foreach($array_cawangan as $caw) { if($caw['version'] == 'v2') { $response = $this->imbangduga->OperationImbangDuga($caw['kodcaw']); } } return 0; } }