Torann / laravel-currency

This provides Laravel with currency functions such as currency formatting and conversion using up-to-date exchange rates.
http://lyften.com/projects/laravel-currency
BSD 2-Clause "Simplified" License
392 stars 137 forks source link

The "openexchangerates" option does not exist #36

Closed halenharper closed 7 years ago

halenharper commented 8 years ago

Laravel 5.2 After update currency:

> 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);
        }
    }
Torann commented 8 years ago

I'm not running into this. Are you still getting this error?