Skip to content

Commit

Permalink
Merge pull request antonioribeiro#155 from ChrisThompsonTLDR/master
Browse files Browse the repository at this point in the history
Currency should be plural
  • Loading branch information
antonioribeiro authored Sep 19, 2020
2 parents 09b81b0 + 128f40b commit e2ec291
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ returns
#### Get the currency symbol

```php
$countries->where('name.common', 'Brazil')->first()->hydrate('currency')->currencies->BRL->units->major->symbol;
$countries->where('name.common', 'Brazil')->first()->hydrate('currencies')->currencies->BRL->units->major->symbol;
```

#### Generate a list of States
Expand Down Expand Up @@ -458,10 +458,10 @@ Should return
Europe/Paris
```

#### Get a countries currency
#### Get a countries currencies

```php
$countries->where('name.common', 'United States')->first()->currency;
$countries->where('name.common', 'United States')->first()->currencies;
```

returns
Expand Down

0 comments on commit e2ec291

Please sign in to comment.