fix: tags

This commit is contained in:
Andras Bacsai
2024-02-03 12:39:07 +01:00
parent bc31df6fb2
commit 0b5baf60a5
9 changed files with 70 additions and 40 deletions

View File

@@ -24,9 +24,8 @@ class Tag extends BaseModel
{
return $this->morphedByMany(Application::class, 'taggable');
}
public function resources() {
return $this->applications();
public function services()
{
return $this->morphedByMany(Service::class, 'taggable');
}
}