valid_segments,true); } public function getRouteKeyName(){ return 'name'; } public function parts(){ return $this->hasMany(Part::class); } }