You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -60,18 +60,18 @@ $regions = (new Regions())->get()->all();
60
60
61
61
### Region
62
62
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.
64
64
65
65
```php
66
-
$region = new Region('us-east-1a');
66
+
$region = new Region('us-east-1a', true);
67
67
68
68
echo $region->id.' ('.$region->country.')';
69
69
```
70
70
```
71
71
us-east-1a (US)
72
72
```
73
73
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).
0 commit comments