Add tags to the Incident model

This commit is contained in:
James Brooks
2018-05-11 17:58:55 +01:00
parent 47f0077928
commit 23f7d58010

View File

@@ -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.
*