PHPackages                             chuckcms/laravel-addresses - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. chuckcms/laravel-addresses

ActiveLibrary

chuckcms/laravel-addresses
==========================

A ChuckCMS module for storing addresses.

v0.1.1(3y ago)13021MITPHPPHP ^7.2.5|^8.0

Since Sep 7Pushed 3y ago1 watchersCompare

[ Source](https://github.com/chuckcms/laravel-addresses)[ Packagist](https://packagist.org/packages/chuckcms/laravel-addresses)[ Docs](https://github.com/chuckcms/laravel-addresses)[ RSS](/packages/chuckcms-laravel-addresses/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (1)

Laravel Addresses
=================

[](#laravel-addresses)

[![Latest Version on Packagist](https://camo.githubusercontent.com/37386757b51c711964d1a47c0a70905efcb579ae7591cbf0d231ffb2a4858a01/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636875636b636d732f6c61726176656c2d6164647265737365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chuckcms/laravel-addresses)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/fcfaded43549fd89d10d1ff2eb50be5c91f01178cc07679cb39897fa7d420454/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f636875636b636d732f6164647265737365732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/chuckcms/addresses/?branch=main)[![StyleCI](https://camo.githubusercontent.com/01e943063c5f0be227b67bcc78cf252b3fbad9978dc83c8253524e27048a38ec/68747470733a2f2f6769746875622e7374796c6563692e696f2f7265706f732f3430333338333336302f736869656c643f6272616e63683d6d61696e)](https://github.styleci.io/repos/403383360?branch=main)[![Total Downloads](https://camo.githubusercontent.com/a54ad19a6c0444da555de83f707911fda0db61ba7f948462036a7a2d95000a31/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636875636b636d732f6c61726176656c2d6164647265737365732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chuckcms/laravel-addresses)

An easy way to manage addresses for Eloquent models in Laravel. Inspired by the following packages:

- [rinvex/laravel-addresses](https://github.com/rinvex/laravel-addresses)
- [Lecturize/Laravel-Addresses](https://github.com/Lecturize/Laravel-Addresses)

Installation
------------

[](#installation)

Require the package by running

` composer require chuckcms/laravel-addresses`

Publish configuration and migration
-----------------------------------

[](#publish-configuration-and-migration)

`php artisan vendor:publish --provider="Chuckcms\Addresses\AddressesServiceProvider"`

This command will publish a `config/addresses.php` and a migration file.

> You can modify the default fields and their rules by changing both of these files.

After publishing you can run the migrations

`php artisan migrate`

Usage
-----

[](#usage)

You can use the `HasAddresses` trait on any model.

```
