diff --git a/app/Models/User.php b/app/Models/User.php index 5ed99155..33da7042 100644 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -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'); } /**