Skip to content

A free open source IT asset/license management system

[Bugfix] Fixed Mail namespace

snipe32c193b9bf9b
diff --git a/app/Console/Commands/SendInventoryAlerts.php b/app/Console/Commands/SendInventoryAlerts.php
index 75dcdd9ef3..415c535a97 100644
--- a/app/Console/Commands/SendInventoryAlerts.php
+++ b/app/Console/Commands/SendInventoryAlerts.php
@@ -48,7 +48,7 @@ class SendInventoryAlerts extends Command
$data['count'] = count($data['data']);
if (count($data['data']) > 0) {
- Mail::send('emails.low-inventory', $data, function ($m) {
+ \Mail::send('emails.low-inventory', $data, function ($m) {
$m->to(explode(',',Setting::getSettings()->alert_email), Setting::getSettings()->site_name);
$m->subject('Low Inventory Report');
});