From 402f64364bf80e464e4a269ca2aa7a970470293e Mon Sep 17 00:00:00 2001 From: Omair Saleh Date: Fri, 1 Sep 2023 05:27:13 +0800 Subject: [PATCH] export arrived parcel improvements --- app/Models/CompanyModule.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/Models/CompanyModule.php b/app/Models/CompanyModule.php index e518f2b4..65e0a259 100644 --- a/app/Models/CompanyModule.php +++ b/app/Models/CompanyModule.php @@ -113,9 +113,8 @@ class CompanyModule extends AbstractModel implements Addressable, Documentable, public function getMarking() { - $connection = $this->invites->first(); - dd($connection); - return $connection ? $connection->pivot->invitee_reference : ''; + $connection = $this->connections()->first(); + return $connection ? $connection->invitee_reference : ''; } /**