Download the PHP package roundly-consulting/addresses-for-laravel without Composer
On this page you can find all versions of the php package roundly-consulting/addresses-for-laravel. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download roundly-consulting/addresses-for-laravel
More information about roundly-consulting/addresses-for-laravel
Files in roundly-consulting/addresses-for-laravel
Package addresses-for-laravel
Short Description Store billing, shipping, or other addresses on any Eloquent model via a polymorphic relationship.
License MIT
Homepage https://roundly-consulting.com/open-source/docs/addresses-for-laravel
Informations about the package addresses-for-laravel
Addresses for Laravel
Billing, shipping and other addresses on any Eloquent model through one polymorphic relation. Add
the HasAddresses trait and attach as many typed addresses as you need, with one primary per owner
and type (promoted atomically), country-code normalisation, query scopes and events.
Installation
Requires PHP 8.4 and Laravel 12 or 13.
If the models that own addresses have UUID/ULID keys, set ADDRESSES_KEY_TYPE before migrating.
Usage
Give a model an address book:
Add an address and read it back:
Documentation
The full documentation — configuration, every feature and its API, and testing — lives on our website: roundly-consulting.com/open-source/docs/addresses-for-laravel
Release notes are in CHANGELOG.md. To contribute, see the contributing guide.
Support our work
This package is free and open source, built and maintained by Roundly Consulting. If it saves you time, please consider supporting our open-source work — a one-time donation, a monthly pledge on Patreon or a crypto donation helps fund maintenance, new features and new packages.
License
The MIT License (MIT). Please see LICENSE for more information.
All versions of addresses-for-laravel with dependencies
illuminate/contracts Version ^12.0|^13.0
roundly-consulting/package-toolkit-for-laravel Version ^1.0