protected function renameAndReorderFromRequest(?array $media = []): self 	{ 		$fileIds = $media[self::IDS_KEY] ?? [];  		if (!$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]) . '.' . $file->extension : $file->file_name, 				'name' => $titles[$id] ?? null, 				'order_column' => $orders[$id] ?? null, 			]); 		}  		return $this; 	}