feat: add tags

This commit is contained in:
2025-11-26 09:34:33 +03:30
parent fef81022fa
commit bebf685f32
5 changed files with 79 additions and 6 deletions
+4 -1
View File
@@ -28,7 +28,10 @@ public function category()
{
return $this->belongsTo(Category::class);
}
public function tags()
{
return $this->belongsToMany(Tag::class, 'media_tag');
}
public function notes()
{
return $this->morphMany(Note::class, 'noteable');