Corrected link component tag : morphMany => morphToMany cf.#3004

This commit is contained in:
Vincent Domange
2018-04-20 09:26:57 +02:00
parent 263764fa6e
commit b2e64e186d

View File

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