app/Console/Commands/GetRates.php
/**
     * Execute the console command.
     *
     * @return mixed
     */
Execute the console command.
@return mixed
Execute the console command . @return mixed
public function handle()
    {
        $this->line("Getting rates...");
        try {
            $currencyGetter = new RateGetter($this->argument('base'));
            $currencyGetter->getRates();
        } catch (Exception $exception) {
            $this->error('Something went wrong, ' . $exception->getMessage());
        }
    }
public function handle ( ) { $ this -> line ( " Getting rates... " ) ; try { $ currencyGetter = new RateGetter ( $ this -> argument ( 'base' ) ) ; $ currencyGetter -> getRates ( ) ; } catch ( Exception $ exception ) { $ this -> error ( 'Something went wrong, ' . $ exception -> getMessage ( ) ) ; } }
Execute the console command.
Execute the console command .