Skip to content

Commit ae12cf3

Browse files
committed
Readme updated.
1 parent bf082f7 commit ae12cf3

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

README.md

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -211,16 +211,6 @@ Address::create([
211211
#### Usage in Resource:
212212
To get an array form of the location casted field from the resource, you can return `parent::toArray($request)`.
213213

214-
```php
215-
class LocationResource extends JsonResource
216-
{
217-
public function toArray($request)
218-
{
219-
return parent::toArray($request);
220-
}
221-
}
222-
```
223-
224214
If you need to return a custom array from the resource, you can use the `toArray()` method of the `Point` object.
225215

226216
```php

0 commit comments

Comments
 (0)