Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
mohitpanjwani committed Dec 9, 2021
1 parent b7d2d6f commit afa79e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/Company.php
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit afa79e3

Please sign in to comment.