This commit is contained in:
@@ -47,4 +47,17 @@ class CurrencyRates extends Model
|
||||
return [$item["country_code"] => $rates[$item["currency_code"]]];
|
||||
});
|
||||
}
|
||||
|
||||
protected function currencyCode() {
|
||||
return CountryCode::active("Y")->mapWithKeys(function ($item) {
|
||||
return [$item['currency_code'] => $item['country_code']];
|
||||
});
|
||||
}
|
||||
|
||||
protected function countryCurrency() {
|
||||
return CountryCode::active("Y")->mapWithKeys(function ($item) {
|
||||
return [$item["country_code"] => $item["currency_code"]];
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user