Skip to content

Commit 247f0c5

Browse files
authored
Merge pull request #22 from boryn/boryn-patch-2
Fix usage of with_wkt_options config
2 parents 06ca5c5 + d691381 commit 247f0c5

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Traits/HasSpatial.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function newQuery(): Builder
6868
{
6969
$raw = '';
7070

71-
$wktOptions = config('laravel-spatial.wkt_options', true) === true
71+
$wktOptions = config('laravel-spatial.with_wkt_options', true) === true
7272
? ', \'axis-order=long-lat\''
7373
: '';
7474

src/Types/Point.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public function __construct(float $lat = 0, float $lng = 0, ?int $srid = null)
2323
? config('laravel-spatial.default_srid') ?? 0
2424
: $srid;
2525

26-
$this->wktOptions = config('laravel-spatial.wkt_options', true) === true
26+
$this->wktOptions = config('laravel-spatial.with_wkt_options', true) === true
2727
? ', \'axis-order=long-lat\''
2828
: '';
2929
}

0 commit comments

Comments
 (0)