NewYour coding agent can read the release notes before it upgrades.Set up the MCP server →
Packagist
Packagist, #2566 most downloaded on Packagist
This package provides functionality for working with the postgis extension in Laravel.
Latest stable
2.3.0
Last release 1 months ago
23 Oct 2026
Ships fairly regularly
a new release about every 5 months
Nearly every release is documented
notes for 21 of 21 stable releases
Nothing withdrawn
no release was ever pulled
4 years old
21 releases · first in 2023
Drag across the ruler to compare, or tap a release to open it.
fix: wrap column argument in ST::yMin() by @mstaack in https://github.com/clickbar/laravel-magellan/pull/174
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/2.2.0...2.3.0
Geometry::toGeoJsonArray() for direct GeoJSON array conversion, independent of configured serialization generatorsST::yMin() treating a column name as a string literal instead of a columnCustom srid geojson by @mauritskorse in https://github.com/clickbar/laravel-magellan/pull/164
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/2.1.0...2.2.0
Your coding agent can read these notes before it upgrades. Set up the MCP server →
GeojsonParser, TransformsGeojsonGeometry,
GeometryGeojsonRule)Added facades for parsers (WKBParser, WKTParser, GeojsonParser) and generators (WKBGenerator, WKTGenerator, GeojsonGenerator)
WKBParser, WKTParser, GeojsonParser) and generators (WKBGenerator, WKTGenerator,
GeojsonGenerator)Full Changelog: https://github.com/clickbar/laravel-magellan/compare/2.0.1...2.1.0
Fixed using the casts after serialization, e.g. in queueable anonymous event listeners. (thanks @henridv #149)
Thanks for fixing bugs, improving documentation and the project!
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/2.0.0...2.0.1
Removed support for deprecated Laravel versions 9.x & 10.x
We are excited to finally release a huge overhaul on the DX with Laravel Magellan!
Please check out the upgrade guide for more recommended steps.
HasPostgisColumns trait & $postgisColumns property.GeometryWKBCastBBoxCast to be generic & internal, please use Box subclasses directlystSelect, stWhere, ...)GeometryType EnumtoString to toRawSql on Box classesGeometryGeojsonRule is not directly invokable anymoreCastable to all geometries to use them as casters, instead of the GeometryWKBCastCastable to all boxes to use them as casters, instead of the BBoxCastAliased Expression class as wrapper for AS in query selects
->as() helper method on MagellanBaseExpressionwithMagellanCasts() as EloquentBuilder macroAsGeometry and AsGeography database expressionsfromString() to Box classes to create a box from a stringStringable interface to all box classesJsonSerializable to Box2D and Box3DGeojsonParser and fail if not$geometry to $geometryOrGeographyExpression and therefore can be used in ->select(...) directly nowtoRawSql methods, now uses the maximum precisionmagellan:update-postgis-columns commandmagellan.eloquent & magellan.model_directories configsFull Changelog: https://github.com/clickbar/laravel-magellan/compare/1.8.0...2.0.0
feat: support Laravel 13 on 1.x by @saibotk in https://github.com/clickbar/laravel-magellan/pull/170
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/1.8.0...1.9.0
@laravel-shift made their first contribution in https://github.com/clickbar/laravel-magellan/pull/132
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/1.7.1...1.8.0
[1.x] Backport: Fix missing precision in WKT coordinates by @saibotk in https://github.com/clickbar/laravel-magellan/pull/122
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/1.7.0...1.7.1
PostGIS ST_LineSubstring support
ST::asGeoJson function to convert geometries to GeoJSON via the databaseExpression types in SRID-related functionsST functionsST::transform and ST::setSRID (thanks @BezBIS #91)ST::buffer & ST:offsetCurve: Correctly renamed styleMitreLevel to styleMitreLimitFull Changelog: https://github.com/clickbar/laravel-magellan/compare/1.6.1...1.7.0
Only override attribute preparation functions on models instead of performInsert or performUpdate entirely (thanks @RomainMazB #89)
performInsert or performUpdate entirely (thanks @RomainMazB #89)Point dimension when using setAltitudeFull Changelog: https://github.com/clickbar/laravel-magellan/compare/1.6.0...1.6.1
chore(deps): Update dependencies & spatie/invade by @saibotk in https://github.com/clickbar/laravel-magellan/pull/79
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/1.5.0...1.6.0
spatie/invade to v2, works without reflection now 🥳Point dimension when using setAltitudeAdded as parameter for stFrom function
as parameter for stFrom functionstHaving with stWhere to also accept string column and ST expressions, boxes and geometries as valueST_PROJECT function not being migrated to the GeometryType enum.Full Changelog: https://github.com/clickbar/laravel-magellan/compare/1.4.0...1.5.0
Added Typing for Box2D and Box3D in GeoParam allowing Box objects as params in Magellan Expressions
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/1.3.0...1.4.0
Added Missing Distance Relationships Functions (Fixes #46)
TransformsGeojsonGeometry trait (Fixes #37)Full Changelog: https://github.com/clickbar/laravel-magellan/compare/1.2.2...1.3.0
Fixed missing handling of expressions in GeoParam by @ahawlitschek in https://github.com/clickbar/laravel-magellan/pull/33
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/1.2.1...1.2.2
Fixed generation of invalid FeatureCollection in case of zero rows by @ahawlitschek in https://github.com/clickbar/laravel-magellan/pull/31
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/1.2.0...1.2.1
Remove meetup notice & run newest pint formatting by @saibotk in https://github.com/clickbar/laravel-magellan/pull/24
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/1.1.0...1.2.0
Support Laravel 10 & test on PHP 8.2 by @saibotk in https://github.com/clickbar/laravel-magellan/pull/19
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/1.0.2...1.1.0
Fix some expressions to use GeometryType enum for $geometryType by @saibotk in https://github.com/clickbar/laravel-magellan/pull/17
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/1.0.1...1.0.2
Remove DB hook to fix having sql in binding values by @saibotk in https://github.com/clickbar/laravel-magellan/pull/15
Full Changelog: https://github.com/clickbar/laravel-magellan/compare/1.0.0...1.0.1
query()->update() calls.- Initial Release 🎉 Full Changelog: https://github.com/clickbar/laravel-magellan/commits/1.0.0
Full Changelog: https://github.com/clickbar/laravel-magellan/commits/1.0.0
One column per quarter.