public function update(StoreFilter $request, Filter $id): RedirectResponse 	{ 		$request->validate([ 			'name' => ['required', 'max:50', 'string', 'unique:' . get_class($id) . ',name,' . $id->id], 			'name_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)); 					}), 			], 			'name_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)); 					}), 			], 			'name_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, 			'display_label' => $request->display_label, 			'type' => $request->type, 			'min' => $request->min, 			'max' => $request->max, 			'step' => $request->step, 			'value' => $request->value, 			'message' => $request->message, 			'required' => $request->boolean('required'), 			'searchable' => $request->boolean('searchable'), 			'active' => $request->boolean('active'), 		]);  		$id->updateTranslations([ 			'name' => [ 				'en' => $request->name_en, 				'de' => $request->name_de, 				'it' => $request->name_it, 			], 			'display_label' => [ 				'en' => $request->display_label_en, 				'de' => $request->display_label_de, 				'it' => $request->display_label_it, 			], 			'value' => [ 				'en' => $id->trimSelectValues($request->value_en), 				'de' => $id->trimSelectValues($request->value_de), 				'it' => $id->trimSelectValues($request->value_it), 			], 			'message' => [ 				'en' => $request->message_en, 				'de' => $request->message_de, 				'it' => $request->message_it, 			], 		]);  		return $this->redirectFromSave('filters.list'); 	}