From afa79e3e8c2f164165db734d034c9b4790293173 Mon Sep 17 00:00:00 2001 From: Mohit Panjwani Date: Thu, 9 Dec 2021 13:40:13 +0530 Subject: [PATCH] fix test --- app/Models/Company.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Models/Company.php b/app/Models/Company.php index 7f70bf6a6..777426740 100644 --- a/app/Models/Company.php +++ b/app/Models/Company.php @@ -147,7 +147,7 @@ public function address() public function users() { - return $this->belongsToMany(User::class, 'user_company', 'user_id', 'company_id'); + return $this->belongsToMany(User::class, 'user_company', 'company_id', 'user_id'); } public function setupRoles()