This commit is contained in:
James Brooks
2018-04-02 18:17:07 +01:00
parent c137e9ab1b
commit 737dd689b0

View File

@@ -147,11 +147,11 @@ class Component extends Model implements HasPresenter
/**
* Get the tags relation.
*
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
* @return \Illuminate\Database\Eloquent\Relations\MorphMany
*/
public function tags()
{
return $this->belongsToMany(Tag::class);
return $this->morphMany(Taggable::class, 'taggable');
}
/**