Skip to content

Commit 365e337

Browse files
committed
Readme updated.
1 parent ae12cf3 commit 365e337

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
@@ -209,9 +209,9 @@ Address::create([
209209
```
210210

211211
#### Usage in Resource:
212-
To get an array form of the location casted field from the resource, you can return `parent::toArray($request)`.
212+
To get an array representation of a location-casted field from a resource, you can return `parent::toArray($request)`.
213213

214-
If you need to return a custom array from the resource, you can use the `toArray()` method of the `Point` object.
214+
If you need to return a custom array from a resource, you can use the `toArray()` method of the `Point` object.
215215

216216
```php
217217
class LocationResource extends JsonResource
@@ -225,7 +225,7 @@ class LocationResource extends JsonResource
225225
}
226226
```
227227

228-
Either way you will get the following output for the location casted field:
228+
Either way, you will get the following output for the location casted field:
229229

230230
```json
231231
{

0 commit comments

Comments
 (0)