Skip to content

Commit

Permalink
fix relationship bug
Browse files Browse the repository at this point in the history
  • Loading branch information
freekmurze committed Nov 8, 2016
1 parent 944082c commit 1cbcd08
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@

All Notable changes to `laravel-tags` will be documented in this file

## 1.1.0 - 2016-12-03
## 1.1.1 - 2016-11-08

- fix bug where a custom tag model would not be used in `tags()`

## 1.1.0 - 2016-11-03

- The function that determines the value of the slug can now be modified in the config file

Expand Down
2 changes: 1 addition & 1 deletion src/HasTags.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ public static function bootHasTags()
public function tags(): MorphToMany
{
return $this
->morphToMany(Tag::class, 'taggable')
->morphToMany(self::getTagClassName(), 'taggable')
->orderBy('order_column');
}

Expand Down

0 comments on commit 1cbcd08

Please sign in to comment.