Skip to content

Commit c157628

Browse files
committed
Fix readme
1 parent 356ab57 commit c157628

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,18 +60,18 @@ $regions = (new Regions())->get()->all();
6060

6161
### Region
6262

63-
You can get a specific record, simply by creating the object with the required parameters. This will automatically call the endpoint and return the object ready to use.
63+
You can get a specific record, simply by creating the object with the required parameters. This will automatically call the endpoint and return the object ready to use. The record will auto-load by setting the last parameter to true.
6464

6565
```php
66-
$region = new Region('us-east-1a');
66+
$region = new Region('us-east-1a', true);
6767

6868
echo $region->id.' ('.$region->country.')';
6969
```
7070
```
7171
us-east-1a (US)
7272
```
7373

74-
Calling the `get` method directly on this same class will return an array of the values from the same endpoint.
74+
Calling the `get` method directly on this same class will return an array of the values from the same endpoint. This will also auto-fill the object (the same as above, passing the true actually just calls the get method).
7575

7676
```php
7777
$result = (new Region('us-east-1a'))->get();

0 commit comments

Comments
 (0)