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 137 forks source link

where is currencies.json, if I use driver filesystem #102

Open sinkcup opened 6 years ago

sinkcup commented 6 years ago

I have change config/currency.php

'driver' => 'filesystem'

and run update, I can dump rates, it's fine.

php artisan currency:update
class CurrencyTest extends TestCase
{
    public function testCurrency()
    {
        $result = currency(10, 'CNY', 'USD', true);
        var_dump($result);
        exit;
    }
}
phpunit tests/CurrencyTest.php
NULL

why currency result is NULL ? where is the currencies.json file, I can not find it in storage.

image

hardevine commented 6 years ago

me too cant find json file, on executing commandart currency:update -o or art currency:update -g it says updated but there is no json file

sdrenth commented 3 years ago

@sinkcup @hardevine And for everyone that reads this in the future, read this: https://lyften.com/projects/laravel-currency/doc/methods.html

Using methods or artisan commands you generate the JSON file yourself.

PierreAlainKouakou commented 3 years ago

@sdrenth Thank you, it work perfectly after use artisan command.