Skip to content

Commit 9aa9277

Browse files
authored
Update README.md
1 parent 3201150 commit 9aa9277

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
@@ -106,6 +106,8 @@ use MatanYadaev\EloquentSpatial\Objects\LineString;
106106
use MatanYadaev\EloquentSpatial\Objects\Point;
107107
use MatanYadaev\EloquentSpatial\Enums\Srid;
108108

109+
// Create new records
110+
109111
$londonEye = Place::create([
110112
'name' => 'London Eye',
111113
'location' => new Point(51.5032973, -0.1217424),
@@ -133,11 +135,9 @@ $vaticanCity = Place::create([
133135
]),
134136
]),
135137
])
136-
```
137138

138-
Retrieve a record with spatial data:
139+
// Access the data
139140

140-
```php
141141
echo $londonEye->location->latitude; // 51.5032973
142142
echo $londonEye->location->longitude; // -0.1217424
143143

0 commit comments

Comments
 (0)