feat: add community post categories and channels
This commit is contained in:
@@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user