This commit is contained in:
James Cole
2018-09-26 20:34:24 +02:00
parent e38b64547f
commit 2a457c40db
2 changed files with 7 additions and 2 deletions

View File

@@ -64,8 +64,10 @@ class FixerIOv2 implements ExchangeRateInterface
$exchangeRate->user()->associate($this->user);
$exchangeRate->fromCurrency()->associate($fromCurrency);
$exchangeRate->toCurrency()->associate($toCurrency);
$exchangeRate->date = $date;
$exchangeRate->rate = $rate;
$exchangeRate->date = $date;
$exchangeRate->rate = $rate;
$exchangeRate->updated_at = new Carbon;
$exchangeRate->created_at = new Carbon;
// get API key
$apiKey = env('FIXER_API_KEY', '');