This commit is contained in:
denisdulici 2017-12-07 12:40:58 +03:00
parent e52a0a98f3
commit ee34dec24b

View File

@ -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) {