Skip to content

Commit a71c93f

Browse files
authored
Create README.md
1 parent 6c1fc92 commit a71c93f

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,17 @@ $address->getZipCode(); // 1012JS
6868
$address->getLongitude(); // 4.4584
6969
$address->getLatitude(); // 52.2296
7070
````
71+
72+
Or use the Facade:
73+
74+
``` php
75+
$address = Postcode::fetchAddress('1012JS', '1')
76+
````
77+
78+
Staight in the routes:
79+
80+
``` php
81+
$router->get('postcode/{zipCode}/{number}', function ($zipCode, $number) {
82+
return Postcode::fetchAddress($zipCode, $number);
83+
});
84+
````

0 commit comments

Comments
 (0)