From b2e64e186d49ccaf5a48bb96e579b4f91cba56c1 Mon Sep 17 00:00:00 2001 From: Vincent Domange Date: Fri, 20 Apr 2018 09:26:57 +0200 Subject: [PATCH] Corrected link component tag : morphMany => morphToMany cf.#3004 --- app/Models/Component.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Component.php b/app/Models/Component.php index 6fbe8d97..8a28f848 100644 --- a/app/Models/Component.php +++ b/app/Models/Component.php @@ -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'); } /**