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), 			'domain_id' => $request->domain_id, 			'text' => [ 				'en' => $request->text_en, 				'hr' => $request->text_hr, 				'de' => $request->text_de, 				'sl' => $request->text_sl, 				'sr' => $request->text_sr, 			], 			'protected' => $request->boolean('protected'), 			'active' => $request->boolean('active'),  		]);  		$id->storage()->handle($request->media);  		return $this->redirectFromSave('documents.list'); 	}