You've already forked guangan
办事指南支持分类
This commit is contained in:
@ -14,6 +14,10 @@ class CmsTutorial extends Model
|
||||
return $this->belongsToMany(CmsCategory::class, CmsTutorialCategory::class, 'cid', 'tid');
|
||||
}
|
||||
|
||||
public function cateids()
|
||||
{
|
||||
return $this->hasMany(CmsTutorialCategory::class, 'tid');
|
||||
}
|
||||
/**
|
||||
* 获取分类ID列表
|
||||
*/
|
||||
|
Reference in New Issue
Block a user