File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -209,9 +209,9 @@ Address::create([
209
209
```
210
210
211
211
#### 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) ` .
213
213
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.
215
215
216
216
``` php
217
217
class LocationResource extends JsonResource
@@ -225,7 +225,7 @@ class LocationResource extends JsonResource
225
225
}
226
226
```
227
227
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:
229
229
230
230
``` json
231
231
{
You can’t perform that action at this time.
0 commit comments