invoice = $invoice; } /** * Execute the job. * * @return Invoice */ public function handle() { \DB::transaction(function () { $this->clone = $this->invoice->duplicate(); }); event(new InvoiceCreated($this->clone)); return $this->clone; } }