hotfix: typo issue that cause login failed.

This commit is contained in:
weichien00
2021-07-13 23:32:03 +08:00
parent ec2896fbbe
commit 5fca745e58
+1 -1
View File
@@ -63,7 +63,7 @@ class User extends AbstractModel implements
*/
public function companyModule(): belongsToMany
{
return $this->belongsToMany(companyModule::class, (new CompanyEmployee())->getTable(), 'user_id', 'company_module_id');
return $this->belongsToMany(CompanyModule::class, (new CompanyEmployee())->getTable(), 'user_id', 'company_module_id');
}
/**