Merge branch 'feature/mzl_dev' into develop
# Conflicts: # app/admin/service/SysDictService.php
This commit is contained in:
@@ -46,4 +46,13 @@ class SysDictCategory extends Model
|
||||
* 不允许自动填充模型字段
|
||||
*/
|
||||
protected $guarded = [];
|
||||
|
||||
|
||||
public function dicts()
|
||||
{
|
||||
return $this->hasMany(SysDict::class, 'category_id', 'id')
|
||||
->where('status', 1)
|
||||
->whereNull('deleted_at')
|
||||
->orderBy('id', 'asc');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user