diff --git a/app/Models/Incident.php b/app/Models/Incident.php index c9be0e91..2c40038f 100644 --- a/app/Models/Incident.php +++ b/app/Models/Incident.php @@ -177,6 +177,16 @@ class Incident extends Model implements HasPresenter return $this->morphMany(Meta::class, 'meta'); } + /** + * Get the tags relation. + * + * @return \Illuminate\Database\Eloquent\Relations\MorphMany + */ + public function tags() + { + return $this->morphMany(Taggable::class, 'taggable'); + } + /** * Get the updates relation. *