From 5fca745e586eda373796c88c46e8cf46388b7d62 Mon Sep 17 00:00:00 2001 From: weichien00 Date: Tue, 13 Jul 2021 23:32:03 +0800 Subject: [PATCH] hotfix: typo issue that cause login failed. --- app/Models/User.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); } /**