PHPackages                             mstfblci/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. mstfblci/laravel-addresses

ActiveLibrary

mstfblci/laravel-addresses
==========================

Module for storing addresses.

1.0.0(3y ago)19MITPHPPHP &gt;=7.2.5

Since Oct 17Pushed 3y ago1 watchersCompare

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

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

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

[](#laravel-addresses)

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

- [chuckcms/laravel-addresses](https://github.com/chuckcms/laravel-addresses)
- [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 madonetr/laravel-addresses`

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

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

`php artisan vendor:publish --provider="Madonetr\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.

```
