buibr / address
There is no license information available for the latest version (v0.1) of this package.
Laravel address morph to models.
v0.1
2023-08-07 06:04 UTC
Requires
- league/iso3166: @stable
Requires (Dev)
- laravel/framework: ^7.0
- phpunit/phpunit: ^10.0.19
This package is auto-updated.
Last update: 2024-11-07 08:52:49 UTC
README
Laravel package for managing addresses on model, morph class for a class, ex. User'
Usage
class User { use HasAddress; } $user = User::first($id); $user->adresses; // Collection[Address] $user->addresses() // HasMany $user->hasAddress() // boolean $user->addAddress([...]) // AddressInterface $user->getAddresses(); // Collection[Address] $user->primaryAddress // Address or null