Convert currencies
This commit is contained in:
parent
c8579660df
commit
3773999ed0
2 changed files with 4 additions and 1 deletions
|
|
@ -170,7 +170,7 @@ class SendReminders extends Command
|
|||
{
|
||||
$this->info('Loading latest exchange rates...');
|
||||
|
||||
$data = CurlUtils::get('https://api.fixer.io/latest');
|
||||
$data = CurlUtils::get(config('ninja.exchange_rates_url'));
|
||||
$data = json_decode($data);
|
||||
|
||||
Currency::whereCode('EUR')->update(['exchange_rate' => 1]);
|
||||
|
|
|
|||
|
|
@ -19,4 +19,7 @@ return [
|
|||
'coupon_75_off' => env('COUPON_75_OFF', false),
|
||||
'coupon_free_year' => env('COUPON_FREE_YEAR', false),
|
||||
|
||||
// data services
|
||||
'exchange_rates_url' => env('EXCHANGE_RATES_URL', 'https://api.fixer.io/latest'),
|
||||
|
||||
];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue