Download the PHP package centrex/laravel-addresses without Composer
On this page you can find all versions of the php package centrex/laravel-addresses. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download centrex/laravel-addresses
More information about centrex/laravel-addresses
Files in centrex/laravel-addresses
Package laravel-addresses
Short Description Manage address in laravel
License MIT
Homepage https://github.com/centrex/laravel-addresses
Informations about the package laravel-addresses
Manage address in laravel
This is where your description should go. Limit it to a paragraph or two. Consider adding a small example.
Contents
- Installation
- Usage Examples
- Testing
- Changelog
- Contributing
- Credits
- License
Installation
You can install the package via composer:
You can run the migrations with:
You can publish the config file with:
Usage
First, add our HasAddresses
trait to your model.
Add an Address to a Model
Alternativly you could do...
Available attributes are street
, street_extra
, city
, post_code
, state
, country
, state
, notes
(for internal use). You can also use custom flags like is_primary
, is_billing
& is_shipping
. Optionally you could also pass lng
and lat
, in case you deactivated the included geocoding functionality and want to add them yourself.
Check if Model has Addresses
Get all Addresses for a Model
Get primary/billing/shipping Addresses
Update an Address for a Model
Delete an Address from a Model
Delete all Addresses from a Model
Testing
๐งน Keep a modern codebase with Pint:
โ Run refactors using Rector
โ๏ธ Run static analysis using PHPStan:
โ Run unit tests using PEST
๐ Run the entire test suite:
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Credits
- centrex
- All Contributors
- lecturize/laravel-addresses
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-addresses with dependencies
illuminate/database Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
webpatser/laravel-countries Version ^1.5
webpatser/laravel-uuid Version ^3.0|^4.0