Fix test
This commit is contained in:
@@ -147,11 +147,11 @@ class Component extends Model implements HasPresenter
|
|||||||
/**
|
/**
|
||||||
* Get the tags relation.
|
* Get the tags relation.
|
||||||
*
|
*
|
||||||
* @return \Illuminate\Database\Eloquent\Relations\BelongsToMany
|
* @return \Illuminate\Database\Eloquent\Relations\MorphMany
|
||||||
*/
|
*/
|
||||||
public function tags()
|
public function tags()
|
||||||
{
|
{
|
||||||
return $this->belongsToMany(Tag::class);
|
return $this->morphMany(Taggable::class, 'taggable');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user