Skip to content

A free open source IT asset/license management system

Eager load cagory and manufacturer

snipeae8289fc8c2e
diff --git a/app/Console/Commands/SendExpirationAlerts.php b/app/Console/Commands/SendExpirationAlerts.php
index 44ca9dce65..7ca66ce012 100644
--- a/app/Console/Commands/SendExpirationAlerts.php
+++ b/app/Console/Commands/SendExpirationAlerts.php
@@ -86,6 +86,7 @@ class SendExpirationAlerts extends Command
// Expiring licenses
$licenses = License::query()->ExpiringLicenses($alert_interval)
+ ->with('manufacturer','category')
->orderBy('expiration_date', 'ASC')
->orderBy('termination_date', 'ASC')
->get();