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)); 					}), 			], 		]);  		$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, 			], 			'display_label' => [ 				'en' => $request->display_label_en, 			], 			'value' => [ 				'en' => $id->trimSelectValues($request->value_en), 			], 			'message' => [ 				'en' => $request->message_en, 			], 		]);  		return $this->redirectFromSave('filters.list'); 	}