public function update(StoreDocument $request, Document $id): RedirectResponse 	{ 		$this->validate($request, [ 			'type' => ['unique:' . $id::class . ',type,' . $id->getKey()], 		]);  		$id->update([ 			'type' => $request->enum('type', DocumentType::class), 			'text' => $request->text, 			'protected' => $request->boolean('protected'), 			'active' => $request->boolean('active'), 		]);  		$id->updateTranslations([ 			'text' => [ 				'en' => $request->text_en, 				'de' => $request->text_de, 				'it' => $request->text_it, 			], 		]);  		$id->storage()->handle($request->media);  		return $this->redirectFromSave('documents.list'); 	}