Skip to content

Commit 9180cad

Browse files
committed
chore: add new functions
1 parent cd3abf6 commit 9180cad

1 file changed

Lines changed: 12 additions & 6 deletions

File tree

README.md

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,18 +80,24 @@ $continents = $world->continents()->get();
8080
$countries = $world->countries()->get();
8181
```
8282

83-
### Get Countries by Continent
83+
### Get Locations
8484

8585
```php
86-
$asia = World::continents('Asia')->first();
87-
8886
$location = World::byId(1)->first();
8987

90-
$location = World::byIds([1,2])->get();
91-
9288
$location = World::byEnglishName('Asia')->first();
9389

94-
$location = World::count();
90+
$locations = World::byIds([1,2])->get();
91+
92+
$locations = World::byEnglishNames(['Iraq', 'Iran'])->get();
93+
94+
$location = World::count();
95+
```
96+
97+
### Get Countries by Continent
98+
99+
```php
100+
$asia = World::continents('Asia')->first();
95101

96102
$asia = World::continents()->byEnglishName('Asia')->first();
97103

0 commit comments

Comments
 (0)