laravel-currency icon indicating copy to clipboard operation
laravel-currency copied to clipboard

where is currencies.json, if I use driver filesystem

Open shaunthegeek opened this issue 6 years ago • 3 comments

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

shaunthegeek avatar Apr 13 '18 02:04 shaunthegeek

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

hardevine avatar May 22 '18 05:05 hardevine

@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.

sdrenth avatar Aug 12 '20 10:08 sdrenth

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

PierreAlainKouakou avatar Jul 10 '21 00:07 PierreAlainKouakou