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 ($fileIds as $id) { 			$file = $modelMedia->firstWhere('id', $id);  			if (!$file) { 				continue; 			}  			$filename = isset($newNames[$id]) ? $this->generateFileName($newNames[$id]) . '.' . $this->getExt($file) : null;  			$file->update([ 				'file_name' => $filename ?? $file->file_name, 				'name' => $titles[$id] ?? null, 				'order_column' => $orders[$id] ?? null, 			]); 		}  		return $this; 	}