You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While the package does the job, I find it a bit awkward when calling, for example, $countries->where('name.common', 'Brazil')->first()->hydrate('currencies')->currencies->BRL->units->major->symbol;, you have to know beforehand what currency the country uses, in this case, BRL. The goal is to get the BRL dynamically when you supply the common name, in this case, Brazil. I am thinking, it should have been dynamic, instead of pinning the response to a currency symbol. Something like:
This makes it hard to use it dynamically when you just want to pull the symbol in an app where multiple currencies will be used, and you can't tell what currencies the user will add as there are provisions in the app to add currencies. If you could work on that to make it dynamic it would be greatly appreciated, users will still be able to get the currency symbol from the iso like in the same response like:
While the package does the job, I find it a bit awkward when calling, for example,
$countries->where('name.common', 'Brazil')->first()->hydrate('currencies')->currencies->BRL->units->major->symbol;
, you have to know beforehand what currency the country uses, in this case,BRL
. The goal is to get the BRL dynamically when you supply the common name, in this case, Brazil. I am thinking, it should have been dynamic, instead of pinning the response to a currency symbol. Something like:Instead of what we now have, which is...
This makes it hard to use it dynamically when you just want to pull the symbol in an app where multiple currencies will be used, and you can't tell what currencies the user will add as there are provisions in the app to add currencies. If you could work on that to make it dynamic it would be greatly appreciated, users will still be able to get the currency symbol from the iso like in the same response like:
The text was updated successfully, but these errors were encountered: