Skip to content

Commit

Permalink
Merge pull request #3017 from vincedom/2.4
Browse files Browse the repository at this point in the history
Corrected link component tag : morphMany => morphToMany cf.#3004
  • Loading branch information
jbrooksuk committed Apr 20, 2018
2 parents 263764f + b2e64e1 commit 5a0a10a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/Models/Component.php
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,11 @@ public function meta()
/**
* 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');
}

/**
Expand Down

0 comments on commit 5a0a10a

Please sign in to comment.