protected function renameAndReorderFromRequest(?array $media = []): self 	{ 		$fileIds = $media[self::IDS_KEY] ?? [];  		if (empty($fileIds)) { 			return $this; 		}  		$newNames = $media[self::NEW_NAMES_KEY] ?? []; 		$titles = $media[self::TITLE_KEY] ?? []; 		$orders = $media[self::ORDER_KEY] ?? [];  		$modelMedia = $this->model->media()->whereIn('id', $fileIds)->get();  		foreach ($modelMedia as $file) { 			$id = $file->getKey();  			$file->update([ 				'file_name' => isset($newNames[$id]) ? $this->generateFileName($newNames[$id]) . '.' . $this->getExt($file) : $file->file_name, 				'name' => $titles[$id] ?? null, 				'order_column' => $orders[$id] ?? null, 			]); 		}  		return $this; 	}