From dcf34d9be2d57b6ddea6ed15f9c947c9b49f3787 Mon Sep 17 00:00:00 2001 From: Deon George Date: Thu, 27 Jun 2024 10:06:11 +1000 Subject: [PATCH] Need to include pkg_msgs when lazyloading relations --- app/Models/Address.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Models/Address.php b/app/Models/Address.php index db189d9..7bdee9b 100644 --- a/app/Models/Address.php +++ b/app/Models/Address.php @@ -209,7 +209,7 @@ class Address extends Model $o = $query ->where('region_id',$ftn['n']) ->where('host_id',$ftn['n']) - ->with(['system:id,active,name,address']) + ->with(['system:id,active,name,address,pkt_msgs']) ->first(); // Look for a normal address @@ -224,7 +224,7 @@ class Address extends Model }) ->orWhere('host_id',$ftn['n']); }) - ->with(['system:id,active,name,address']) + ->with(['system:id,active,name,address,pkt_msgs']) ->first(); // Check and see if we are a flattened domain, our address might be available with a different zone.