diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php index 5381047c73..3a6f4f5855 100644 --- a/app/Http/Controllers/Auth/LoginController.php +++ b/app/Http/Controllers/Auth/LoginController.php @@ -377,6 +377,8 @@ class LoginController extends BaseController } /** @var \App\Models\User $user */ + $user = auth()->user(); + $user->setCompany($set_company); $this->setLoginCache($user);