/** * Execute the console command. * * @return void */ public function handle() { $this->info('Fetching versions...'); try { $releases = $this->centurian->getReleases(); } catch (Exception $e) { $this->error('There was an error contacting the API.'); return; } foreach ($releases as $release) { $this->info('Release: ' . $release->version); } }