diff --git a/app/Console/Commands/InvoiceReminder.php b/app/Console/Commands/InvoiceReminder.php index c0f342289..e3fcb75d9 100644 --- a/app/Console/Commands/InvoiceReminder.php +++ b/app/Console/Commands/InvoiceReminder.php @@ -69,7 +69,9 @@ class InvoiceReminder extends Command foreach ($invoices as $invoice) { // Notify the customer - $invoice->customer->notify(new Notification($invoice)); + if ($invoice->customer) { + $invoice->customer->notify(new Notification($invoice)); + } // Notify all users assigned to this company foreach ($company->users as $user) {