Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get currencies with symbol #175

Open
jigapate opened this issue May 27, 2021 · 0 comments
Open

Get currencies with symbol #175

jigapate opened this issue May 27, 2021 · 0 comments

Comments

@jigapate
Copy link

jigapate commented May 27, 2021

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,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant