From ffe5b5e4df4ba91a16139257c09de9200be35c29 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Mon, 30 Dec 2019 09:12:24 +1100 Subject: [PATCH] Fix missing variable (#3181) --- app/Events/Invoice/InvoiceWasCreated.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Events/Invoice/InvoiceWasCreated.php b/app/Events/Invoice/InvoiceWasCreated.php index 4f58257a800e..2771f28b4d2b 100644 --- a/app/Events/Invoice/InvoiceWasCreated.php +++ b/app/Events/Invoice/InvoiceWasCreated.php @@ -11,6 +11,7 @@ namespace App\Events\Invoice; +use App\Models\Company; use App\Models\Invoice; use Illuminate\Queue\SerializesModels; @@ -26,13 +27,15 @@ class InvoiceWasCreated */ public $invoice; + public $company /** * Create a new event instance. * * @param Invoice $invoice */ - public function __construct(Invoice $invoice) + public function __construct(Invoice $invoice, Company $company) { $this->invoice = $invoice; + $this->company = $company; } }