large commit

This commit is contained in:
omair saleh
2021-03-11 13:06:02 +08:00
parent 13ddf458db
commit 05401f6bbc
729 changed files with 23312 additions and 7218 deletions
+2 -2
View File
@@ -60,8 +60,8 @@ class User extends AbstractModel implements
/**
* @return belongsToMany
*/
public function company(): belongsToMany
public function company(): belongsToMany
{
return $this->belongsToMany(Company::class, 'company_employee', 'user_id', 'company_id');
return $this->belongsToMany(Company::class, (new Employee())->getTable(), 'user_id', 'company_id');
}
}