public function update(StorePasta $request, Pasta $id): RedirectResponse 	{ 		$this->validate($request, [ 			'slug_en' => ['required', 'string', 'max:100', new UniqueTranslatableField($id, $id->getSlugFieldName())], 			'slug_hr' => ['nullable', 'string', 'max:100', new UniqueTranslatableField($id, $id->getSlugFieldName())], 			'slug_de' => ['nullable', 'string', 'max:100', new UniqueTranslatableField($id, $id->getSlugFieldName())], 			'slug_sl' => ['nullable', 'string', 'max:100', new UniqueTranslatableField($id, $id->getSlugFieldName())], 			'slug_sr' => ['nullable', 'string', 'max:100', new UniqueTranslatableField($id, $id->getSlugFieldName())], 		]);  		$id->update([ 			'title' => [ 				'en' => preg_replace('/\s+/', ' ', (string) $request->title_en), 				'hr' => preg_replace('/\s+/', ' ', (string) $request->title_hr), 				'de' => preg_replace('/\s+/', ' ', (string) $request->title_de), 				'sl' => preg_replace('/\s+/', ' ', (string) $request->title_sl), 				'sr' => preg_replace('/\s+/', ' ', (string) $request->title_sr), 			], 			$id->getSlugFieldName() => [ 				'en' => $request->slug_en, 				'hr' => $request->slug_hr, 				'de' => $request->slug_de, 				'sl' => $request->slug_sl, 				'sr' => $request->slug_sr, 			], 			'body' => [ 				'en' => $request->body_en, 				'hr' => $request->body_hr, 				'de' => $request->body_de, 				'sl' => $request->body_sl, 				'sr' => $request->body_sr, 			], 			'serving_description' => [ 				'en' => $request->serving_description_en, 				'hr' => $request->serving_description_hr, 				'de' => $request->serving_description_de, 				'sl' => $request->serving_description_sl, 				'sr' => $request->serving_description_sr, 			], 			'nutritional_values' => [ 				'en' => $request->nutritional_values_en, 				'hr' => $request->nutritional_values_hr, 				'de' => $request->nutritional_values_de, 				'sl' => $request->nutritional_values_sl, 				'sr' => $request->nutritional_values_sr, 			], 			'domain_id' => $request->domain_id, 			'price' => $request->price, 			'discounted_price' => $request->discounted_price, 			'number_of_items' => $request->number_of_items, 			'code' => $request->code, 			'weight' => $request->weight, 			'year' => $request->year, 			'featured' => $request->boolean('featured'), 			'active' => $request->boolean('active'), 			'available_in_store' => $request->boolean('available_in_store'), 			'discounted_price_valid_to' => formatTimestamp($request->discounted_price_valid_to, 'Y-m-d H:i:s', $request->user()->timezone), 		]);  		$id->pastaEmblemPivot()->delete(); 		$id->productParent->productRecipePivot()->delete();  		$id->productParent->update([ 			'domain_id' => $request->domain_id, 			'category_id' => $request->category_id, 		]);  		foreach (($request->emblems ?? []) as $emblem_id) { 			$id->pastaEmblemPivot()->create([ 				'emblem_id' => $emblem_id, 			]); 		}  		foreach ($request->recipes ?? [] as $recipe_id) { 			$id->productParent->productRecipePivot()->create([ 				'recipe_id' => $recipe_id, 			]); 		}  		$id->productParent->productFilters()->delete();  		foreach ($request->filters ?? [] as $filter_id => $value) { 			$id->productParent->productFilters()->create([ 				'filter_id' => $filter_id, 				'value' => $value, 			]); 		}  		$id->storage()->handle($request->media);  		return $this->redirectFromSave('pasta.list'); 	}