> php artisan currency:update
> [InvalidArgumentException]
> The "openexchangerates" option does not exist.
public function fire()
{
// Get Settings
$defaultCurrency = $this->currency->getConfig('default');
if ($this->input->getOption('openexchangerates')) { //The "openexchangerates" option does not exist
if (!$api = $this->currency->getConfig('api_key')) {
$this->error('An API key is needed from OpenExchangeRates.org to continue.');
return;
}
// Get rates
$this->updateFromOpenExchangeRates($defaultCurrency, $api);
}
else {
// Get rates
$this->updateFromYahoo($defaultCurrency);
}
}
Laravel 5.2 After update currency: