fileId = $fileId; $this->bimFileBO = $bimFileBO; $this->file = $file; } /** * Execute the job. */ public function handle(): void { $file = File::find($this->fileId); if ($file) { $bimInfo = BIMFactory::make()->uploadFile($this->file, $this->bimFileBO); BimFile::query()->create([ 'file_id' => $file->id, ...$bimInfo ]); } } }