public function update(StoreCategory $request, Category $id): RedirectResponse 	{ 		$this->validate($request, [ 			'slug_en' => ['required', 'string', 'max:110', new UniqueTranslatableField($id, $id->getSlugFieldName())], 			'slug_hr' => ['nullable', 'string', 'max:110', new UniqueTranslatableField($id, $id->getSlugFieldName())], 			'slug_de' => ['nullable', 'string', 'max:110', new UniqueTranslatableField($id, $id->getSlugFieldName())], 			'slug_sl' => ['nullable', 'string', 'max:110', new UniqueTranslatableField($id, $id->getSlugFieldName())], 			'slug_sr' => ['nullable', 'string', 'max:110', new UniqueTranslatableField($id, $id->getSlugFieldName())], 		]);  		$id->update([ 			'name' => [ 				'en' => preg_replace('/\s+/', ' ', (string) $request->name_en), 				'hr' => preg_replace('/\s+/', ' ', (string) $request->name_hr), 				'de' => preg_replace('/\s+/', ' ', (string) $request->name_de), 				'sl' => preg_replace('/\s+/', ' ', (string) $request->name_sl), 				'sr' => preg_replace('/\s+/', ' ', (string) $request->name_sr), 			], 			$id->getSlugFieldName() => [ 				'en' => $request->slug_en, 				'hr' => $request->slug_hr, 				'de' => $request->slug_de, 				'sl' => $request->slug_sl, 				'sr' => $request->slug_sr, 			], 			'type' => $request->enum('type', CategoryType::class), 			'domain_id' => $request->domain_id, 			'ordering' => $request->ordering, 			'active' => $request->boolean('active'), 		]);  		$id->categoryFilters()->delete();  		foreach ($request->selected_filters ?? [] as $filter_id) { 			$id->categoryFilters()->create([ 				'filter_id' => $filter_id, 			]); 		}  		$id->storage()->handle($request->media);  		return $this->redirectFromSave('categories.list'); 	}