Laravel Addressable is a package that adds polymorphic address management to any Eloquent model via a single migration and trait. It supports general-purpose, billing, and shipping address types with dedicated traits and scoped helpers. Features include a JSON meta column for arbitrary extra data, a configurable display_address accessor, primary address toggling with events, and geospatial support using a spatial POINT column for radius and nearest-neighbor queries (requires MySQL 8+, MariaDB 10.5+, or PostgreSQL with PostGIS).

3m read timeFrom laravel-news.com
Post cover image
161.7K Impressions