diff --git a/app/Console/Commands/SendExpirationAlerts.php b/app/Console/Commands/SendExpirationAlerts.php index 03ffc0cd41..29809a35b3 100644 --- a/app/Console/Commands/SendExpirationAlerts.php +++ b/app/Console/Commands/SendExpirationAlerts.php @@ -62,6 +62,7 @@ class SendExpirationAlerts extends Command if ($assets->count() > 0) { $this->info(trans_choice('mail.assets_warrantee_alert', $assets->count(), ['count' => $assets->count(), 'threshold' => $threshold])); + \Notification::send($recipients, new ExpiringAssetsNotification($assets, $threshold)); } // Expiring licenses