Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit 84a6d3f

Browse files
committed
Update docs.
You no longer need to define what type of geometry object an attribute is.
1 parent 34b1e75 commit 84a6d3f

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
@@ -102,7 +102,7 @@ other methods:
102102

103103
All models which are to be PostGis enabled **must** use the *PostgisTrait*.
104104

105-
You must also define an associative array called `$postgisFields` which defines
105+
You must also define an array called `$postgisFields` which defines
106106
what attributes/columns on your model are to be considered geometry objects.
107107

108108
```PHP
@@ -120,8 +120,8 @@ class Location extends Model
120120
];
121121

122122
protected $postgisFields = [
123-
'location' => Point::class,
124-
'polygon' => Polygon::class,
123+
Point::class,
124+
Polygon::class,
125125
];
126126

127127
}

0 commit comments

Comments
 (0)