laravel-currency
laravel-currency copied to clipboard
where is currencies.json, if I use driver filesystem
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
.
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
@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 Thank you, it work perfectly after use artisan command.