All notable changes to laravel-eloquent-spatial
will be documented in this file.
- Fix WKT for empty geometry collections by @LachlanArthur in #132
- @LachlanArthur made their first contribution in #132
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/4.4.0...4.4.1
- Allow setting default SRID by @MatanYadaev in https://github.com/MatanYadaev/laravel-eloquent-spatial/commit/43edde698892659c9ef28b83a774f62a91ff7559
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/4.3.2...4.4.0
- Fix SRID not being optional for expression in GeometryCast by @nickknissen in #124
- @nickknissen made their first contribution in #124
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/4.3.1...4.3.2
- Fix columns that their cast is
Geometry
by @MatanYadaev in #127
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/4.3.0...4.3.1
- Support Geometry class extension by @jobverplanke in #125
- @jobverplanke made their first contribution in #125
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/4.2.1...4.3.0
- Support Laravel 11 by @MatanYadaev in #113
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/4.1.1...4.2.0
- Laravel Pint by @MatanYadaev in #112
- Bugfix:
isDirty
is alwaystrue
after creation by @MatanYadaev in #115
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/4.1.0...4.1.1
- Postgres support by @MatanYadaev in #109
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/4.0.0...4.1.0
- Moved away from spatialbuilder to scopes by @yinx in #102
- Allow srid enum as srid property aside from integer by @yinx in #103
- Add php 8.3 support by @gdebrauwer in #105
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/3.2.2...4.0.0
- Revert v3.2.1 changes
- Fixed model serialization bug #100
- Support
St_Centroid
spatial function
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/3.1.2...3.2.0
- Bugfix: Model spatial column update using Expression by @hiteshsamcom in #86
- @hiteshsamcom made their first contribution in #86
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/2.10.0...2.10.1
- Add SRID Enum by @Riley19280 in #84
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/3.1.1...3.1.2
- Bugfix: Model spatial column update using Expression by @MatanYadaev in #81
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/3.1.0...3.1.1
- Support receiving
Expression
as a parameter inSpatialBuilder
methods by @Riley19280 in #76
- @Riley19280 made their first contribution in #76
Full Changelog: https://github.com/MatanYadaev/laravel-eloquent-spatial/compare/3.0.0...3.1.0
Support Larave 10
Support PHP 8.2 #74
Add HasSpatial trait #75
- Cast geometry from array #71
- Add
Geometry@toSqlExpression
method #70
Macroable geometry classes
Add Doctrine types
Query Builder - Support column to have table name #61
Geometry objects are now stringable.
Support MySQL 5.7
- Add
whereNotWithin
Builder method - Add
whereNotContains
Builder method
Added MariaDB support
Fix axis-order
when using SRID
Refactor toWkt
- SRID support
- Add
Geometry@toWkt
- Add
Geometry@toWkb
- Fix generic type issue with
GeometryCollection
Make Geometry::toWkt
parameters optional
Improve casting:
- Fix
getOriginal
- Use a more standard WKT format
- Fix PHPStan issues
- Support Laravel 9
- Support PHP 8.1
- Remove auto-discovery part from composer.json
- Upgrade to PHP-CS-Fixer v3 and clear PHPStan issues
- Initial release