batchId = $batch_id; $this->userId = $userId; $this->warehouseId = $warehouseId; $this->ownerId = $ownerId; $this->date = $date; } /** * Execute the job. * * @return void */ public function handle() { /** @var WaveService $service */ $service = app(WaveService::class); $service->sendOwnerPiece($this->batchId,$this->userId,$this->warehouseId,$this->ownerId,$this->date); } }