PHPackages                             uptoolkit/laravel-addressable - 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. [Framework](/categories/framework)
4. /
5. uptoolkit/laravel-addressable

ActiveLibrary[Framework](/categories/framework)

uptoolkit/laravel-addressable
=============================

Addressable Polymorphic Eloquent Models for Laravel

1.0.0(2y ago)01431MITPHPPHP &gt;=7.1

Since Jan 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/uptoolkit/laravel-addressable)[ Packagist](https://packagist.org/packages/uptoolkit/laravel-addressable)[ RSS](/packages/uptoolkit-laravel-addressable/feed)WikiDiscussions main Synced yesterday

READMEChangelog (1)Dependencies (5)Versions (3)Used By (0)

Uptoolkit Laravel Addressable
=============================

[](#uptoolkit-laravel-addressable)

[![Build Status](https://camo.githubusercontent.com/12be60775ef98e37bba009fc74d11c187ceaa78b42eac9fcf18f4686932056eb/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7570746f6f6c6b69742f4c61726176656c2d4164647265737361626c652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/uptoolkit/Laravel-Addressable)![PHP from Packagist](https://camo.githubusercontent.com/e527bdb7554c0a1112399943fc92befe98a5b76a3ad4b8a4de15a7c15eb65c2a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f7570746f6f6c6b69742f6c61726176656c2d6164647265737361626c652e7376673f7374796c653d666c61742d737175617265)[![Latest Version](https://camo.githubusercontent.com/bca538352d99272bf5d4ee74d27f6e211175ee3c0131b4830fd1cce6339c9eb5/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7570746f6f6c6b69742f4c61726176656c2d4164647265737361626c652e7376673f7374796c653d666c61742d737175617265)](https://github.com/uptoolkit/Laravel-Addressable/releases)[![License](https://camo.githubusercontent.com/cca1a2821896dd0ff00a42d817204a9eb78b58b8a0b3cb96fdf40ce09ffdc27c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7570746f6f6c6b69742f4c61726176656c2d4164647265737361626c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/uptoolkit/Laravel-Addressable)

This is a fork of Faust Brian Laravel Addressable maintened to make it work with new versions of Laravel. All credits go to him.

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

[](#installation)

Require this package, with [Composer](https://getcomposer.org/), in the root directory of your project.

```
$ composer require uptoolkit/laravel-addressable
```

You can publish the migration with:

```
$ php artisan vendor:publish --provider="Uptoolkit\Addressable\AddressableServiceProvider" --tag="migrations"
```

After the migration has been published you can create the tables by running the migrations:

```
$ php artisan migrate
```

You can publish the config file with:

```
$ php artisan vendor:publish --provider="Uptoolkit\Addressable\AddressableServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

### Setup a Model

[](#setup-a-model)

```
