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)); 					}), 			], 		]);  		$id->update([ 			'category_id' => $request->category_id, 			'name' => $request->name, 			'slug' => $request->slug, 			'active' => $request->boolean('active'), 			'use_parent_filters' => $request->boolean('use_parent_filters'), 			'description' => $request->description, 		]);  		$id->updateTranslations([ 			'name' => [ 				'en' => $request->name_en, 			], 			'slug' => [ 				'en' => $request->slug_en, 			], 			'description' => [ 				'en' => $request->description_en, 			], 		]);  		$id->storeFilters($request->selected_filters); 		$id->storage()->handle($request->media);  		return $this->redirectFromSave('categories.list'); 	}