You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
withinRadius(Point $center, float $meters) query scope as a clean wrapper over whereDistanceSphere
Spatial index migration stub (addressable-spatial-index-migration) that backfills NULL coordinates to POINT(0, 0), alters coordinates to NOT NULL with a POINT(0, 0) default, and adds a SPATIAL INDEX for fast geo queries
Eager-loadable primaryAddress relation via User::with('primaryAddress')
Tests for SoftDeletes cascade, non-SoftDeletes cascade, primaryAddress eager loading and withinRadius
Changed
primaryAddress() is now a MorphOne relation instead of a method returning ?Address. Property access ($user->primaryAddress) is unchanged; callers using $user->primaryAddress() with parentheses must switch to the property or append ->first()
Cascade delete is now SoftDeletes-aware: addresses survive a soft-delete of the parent model and are removed only on forceDelete()
addressable_type and addressable_id removed from $fillable on Address to avoid mass-assignment bypassing the polymorphic relation
Widen Pest and Pest plugin constraints to ^3.0|^4.0 so the Laravel 13 CI matrix can resolve Pest 4 (pest-plugin-laravel v4 is the first version to support Laravel 13)
Fixed
AddressableServiceProvider indentation so register() is clearly a class member
scopeAddDistanceTo PHPDoc block now uses /** */ instead of /* */ so IDEs and static analyzers pick it up
CI workflow: added missing --dev flag on composer require so laravel/framework and orchestra/testbench stay in require-dev