public function update(StoreCategory $request, Category $id): RedirectResponse 	{ 		$request->validate([ 			'slug' => ['required', 'string', 'max:50', 'unique:' . get_class($id) . ',slug,' . $id->id], 			'slug_en' => [ 				'required', 'string', 'max:50', 				Rule::unique(Translation::class, 'value') 					->ignore($id->id, 'item_id') 					->where(function ($query) use ($id) { 						return $query->where('item_type', get_class($id)); 					}), 			], 			'slug_de' => [ 				'required', 'string', 'max:50', 				Rule::unique(Translation::class, 'value') 					->ignore($id->id, 'item_id') 					->where(function ($query) use ($id) { 						return $query->where('item_type', get_class($id)); 					}), 			], 			'slug_it' => [ 				'required', 'string', 'max:50', 				Rule::unique(Translation::class, 'value') 					->ignore($id->id, 'item_id') 					->where(function ($query) use ($id) { 						return $query->where('item_type', get_class($id)); 					}), 			], 		]);  		$id->update([ 			'name' => $request->name, 			'slug' => $request->slug, 			'ordering' => $request->ordering, 			'active' => $request->boolean('active'), 			'show_on_homepage' => $request->boolean('show_on_homepage'), 			'use_parent_filters' => $request->boolean('use_parent_filters'), 			'description' => $request->description, 			'category_id' => $request->parent_category, 		]);  		$id->updateTranslations([ 			'name' => [ 				'en' => $request->name_en, 			], 			'slug' => [ 				'en' => $request->slug_en, 			], 			'description' => [ 				'en' => $request->description_en, 			], 		]);  		$id->updateTranslations([ 			'name' => [ 				'de' => $request->name_de, 			], 			'slug' => [ 				'de' => $request->slug_de, 			], 			'description' => [ 				'de' => $request->description_de, 			], 		]);  		$id->updateTranslations([ 			'name' => [ 				'it' => $request->name_it, 			], 			'slug' => [ 				'it' => $request->slug_it, 			], 			'description' => [ 				'it' => $request->description_it, 			], 		]);  		$id->storeFilters($request->selected_filters); 		$id->storage()->handle($request->media);  		return $this->redirectFromSave('categories.list'); 	}