attributes['type']) { $type_label = '阻 断'; } else { $type_label = '放 行'; } return $type_label; } public function rules() { return $this->belongsToMany(Rule::class); } }