public function update(StoreCustomDollPart $request, CustomDollPart $id): RedirectResponse 	{ 		$id->update([ 			'name' => [ 				'en' => preg_replace('/\s+/', ' ', (string) $request->name_en), 				'de' => preg_replace('/\s+/', ' ', (string) $request->name_de), 				'fr' => preg_replace('/\s+/', ' ', (string) $request->name_fr), 				'es' => preg_replace('/\s+/', ' ', (string) $request->name_es), 			], 		]);  		$id->customDollPartVariants()->whereNotIn('variant_id', $request->color_variants)->delete();  		foreach ($request->color_variants as $variant_id) { 			$id->customDollPartVariants()->updateOrCreate([ 				'variant_id' => $variant_id, 			]); 		}  		return $this->redirectFromSave('custom-doll-parts.list'); 	}