Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,27 @@ Check out [Webpatser\Countries](https://github.com/webpatser/laravel-countries)

## Usage

Load it into each model where you want to use

```php

<?php

use Lecturize\Addresses\Traits\HasAddresses;

class Post extends Model
{

use HasAddresses;

...

}

?>

```

##### Add an Address to a Model
```php
$post = Post::find(1);
Expand Down Expand Up @@ -130,4 +151,4 @@ Licensed under [MIT license](http://opensource.org/licenses/MIT).

## Author

**Handcrafted with love by [Alexander Manfred Poellmann](http://twitter.com/AMPoellmann) for [Lecturize](https://lecturize.com) in Vienna &amp; Rome.**
**Handcrafted with love by [Alexander Manfred Poellmann](http://twitter.com/AMPoellmann) for [Lecturize](https://lecturize.com) in Vienna &amp; Rome.**