'array', 'nodes' => 'array']; protected $guarded = ['id']; public function getTypeLabelAttribute(): string { if ($this->attributes['type']) { $type_label = '阻 断'; } else { $type_label = '放 行'; } return $type_label; } }