invoice = $invoice; $this->signature = $signature; } /** * Execute the job. * * @return void */ public function handle() { $invitation = $this->invoice->invitations->whereNotNull('signature_base64')->first(); if (! $invitation) { return; } $invitation->signature_base64 = $this->signature; $invitation->save(); CreateInvoicePdf::dispatch($invitation); } }