A free open source IT asset/license management system
Fixed #8597 - Added leading slash to notifications console commands
snipef5a0726f985e
diff --git a/app/Console/Commands/SendExpectedCheckinAlerts.php b/app/Console/Commands/SendExpectedCheckinAlerts.phpindex 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.phpindex 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.phpindex 93b04978b0..2c270ca7b4 100644--- a/app/Console/Commands/SendInventoryAlerts.php+++ b/app/Console/Commands/SendInventoryAlerts.php@@ -52,7 +52,7 @@ class SendInventoryAlerts extends Commandreturn 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 == '') {