diff --git a/app/Models/CompanyModule.php b/app/Models/CompanyModule.php index a5bb77a3..e518f2b4 100644 --- a/app/Models/CompanyModule.php +++ b/app/Models/CompanyModule.php @@ -113,7 +113,7 @@ class CompanyModule extends AbstractModel implements Addressable, Documentable, public function getMarking() { - $connection = $this->inviters->first(); + $connection = $this->invites->first(); dd($connection); return $connection ? $connection->pivot->invitee_reference : ''; }