antonioribeiro / antonioribeiro/countries
Get currencies with symbol
- Dominant language
- PHP
- Stars
- 1.9k
- Forks
- 298
- PR merge metrics
- No merged PRs in 30d
Description
As per documentation,
```
$countries->where('name.common', 'United States')->first()->currencies;
```
this return,
```
[{
"alternativeSigns": [],
"ISO4217Code": "USD",
"ISO4217Number": "840",
"sign": "$",
"subunits": 100,
"title": "U.S. dollar",
....
```
But I am getting only symbols in the collection dump,
```
PragmaRX\Countries\Package\Support\Collection {#715 ▼
#items: array:3 [▼
0 => "USD"
1 => "USN"
2 => "USS"
]
#cache: []
}
```
How can I get all details as per the documentation, I need to use ```sign``` in the collection,
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the documented currencies access example and compare it with the returned Collection containing only currency codes. Trace the currencies value and collection behavior to determine why fields such as sign are unavailable; done means the documented access provides the currency details requested by the issue.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- laravel, php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100