diff --git a/app/Console/Commands/SendExpectedCheckinAlerts.php b/app/Console/Commands/SendExpectedCheckinAlerts.php index d10791200d..f56f6f88c6 100644 --- a/app/Console/Commands/SendExpectedCheckinAlerts.php +++ b/app/Console/Commands/SendExpectedCheckinAlerts.php @@ -58,7 +58,7 @@ class SendExpectedCheckinAlerts extends Command $recipients = collect(explode(',', $settings->alert_email))->map(function ($item, $key) { return new AlertRecipient($item); }); - Notification::send($recipients, new ExpectedCheckinAdminNotification($assets)); + \Notification::send($recipients, new ExpectedCheckinAdminNotification($assets)); } } } diff --git a/app/Console/Commands/SendExpirationAlerts.php b/app/Console/Commands/SendExpirationAlerts.php index 858f33b345..f88c345669 100644 --- a/app/Console/Commands/SendExpirationAlerts.php +++ b/app/Console/Commands/SendExpirationAlerts.php @@ -55,14 +55,14 @@ class SendExpirationAlerts extends Command $assets = Asset::getExpiringWarrantee($threshold); 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)); + \Notification::send($recipients, new ExpiringAssetsNotification($assets, $threshold)); } // Expiring licenses $licenses = License::getExpiringLicenses($threshold); if ($licenses->count() > 0) { $this->info(trans_choice('mail.license_expiring_alert', $licenses->count(), ['count' => $licenses->count(), 'threshold' => $threshold])); - Notification::send($recipients, new ExpiringLicenseNotification($licenses, $threshold)); + \Notification::send($recipients, new ExpiringLicenseNotification($licenses, $threshold)); } } else { if ($settings->alert_email == '') { diff --git a/app/Console/Commands/SendInventoryAlerts.php b/app/Console/Commands/SendInventoryAlerts.php index 93b04978b0..2c270ca7b4 100644 --- a/app/Console/Commands/SendInventoryAlerts.php +++ b/app/Console/Commands/SendInventoryAlerts.php @@ -52,7 +52,7 @@ class SendInventoryAlerts extends Command return new AlertRecipient($item); }); - Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold)); + \Notification::send($recipients, new InventoryAlert($items, $settings->alert_threshold)); } } else { if ($settings->alert_email == '') {