diff --git a/composer.json b/composer.json index 4451cb50..cf3aa1c8 100644 --- a/composer.json +++ b/composer.json @@ -1,5 +1,5 @@ { - "name": "grimzy/laravel-mysql-spatial", + "name": "entryninja/laravel-mysql-spatial", "description": "MySQL spatial data types extension for Laravel.", "scripts": { "test": "phpunit -c phpunit.xml.dist", @@ -15,16 +15,16 @@ } ], "require": { - "php": ">=7.3", + "php": "^8.3", "ext-pdo": "*", "ext-json": "*", - "illuminate/database": "^8.0", + "illuminate/database": "^8.0|^9.0|^10.0|^11.0|^12.0", "geo-io/wkb-parser": "^1.0", "jmikola/geojson": "^1.0" }, "require-dev": { "phpunit/phpunit": "~6.5", - "laravel/laravel": "^8.0", + "laravel/laravel": "^8.0|^9.0|^10.0|^11.0|^12.0", "doctrine/dbal": "^2.5", "laravel/browser-kit-testing": "^2.0", "mockery/mockery": "^1.3" diff --git a/src/Eloquent/SpatialExpression.php b/src/Eloquent/SpatialExpression.php index 9224af0f..3b3082b5 100644 --- a/src/Eloquent/SpatialExpression.php +++ b/src/Eloquent/SpatialExpression.php @@ -3,12 +3,16 @@ namespace Grimzy\LaravelMysqlSpatial\Eloquent; use Illuminate\Database\Query\Expression; +use Illuminate\Database\Grammar; +/** + * @property-read object $value + */ class SpatialExpression extends Expression { - public function getValue() + public function getValue(Grammar $grammar = null) { - return "ST_GeomFromText(?, ?, 'axis-order=long-lat')"; + return "ST_GeomFromText(?, ?)"; } public function getSpatialValue()