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
390 stars 138 forks source link

currencies.php issue #127

Open n0n0n0n0 opened 4 years ago

n0n0n0n0 commented 4 years ago

this file contains predefined list of currencies which is not full, for example there are no cryptocurrencies which openexchangerates system supports, that's why i cant add BTC currency:

 /**
     * Update currency in storage.
     *
     * @param string $currency
     *
     * @return void
     */
    protected function update($currency)
    {
        if (($data = $this->getCurrency($currency)) === null) {
            return $this->error("Currency \"{$currency}\" not found");
        }

because of this check, make a 'default' currency with no formatter to avoid this problems

n0n0n0n0 commented 4 years ago

or need to make it possible to add own currencies