feat: add community post categories and channels

This commit is contained in:
hajimi
2026-08-02 17:39:52 +08:00
parent 95f03af60e
commit b0b278d11f
18 changed files with 1132 additions and 12 deletions
@@ -26,4 +26,9 @@ class CommunityPost extends BaseModel
{
return $this->belongsToMany(CommunityTag::class, 'la_community_post_tag', 'tag_id', 'post_id');
}
public function category()
{
return $this->belongsTo(CommunityCategory::class, 'category_id');
}
}