attributes['type']) {
$type_label = ''.trans('admin.rule.group.type.off').'';
} else {
$type_label = ''.trans('admin.rule.group.type.on').'';
}
return $type_label;
}
public function rules(): BelongsToMany
{
return $this->belongsToMany(Rule::class);
}
}