diff --git a/app/Sessions/SessionUser.php b/app/Sessions/SessionUser.php index fe877bc..89575d2 100644 --- a/app/Sessions/SessionUser.php +++ b/app/Sessions/SessionUser.php @@ -35,6 +35,10 @@ class SessionUser // 認証していない場合はスキップ $this->user = Auth::user(); + if ($this->user instanceof User && $this->user->customer_id) { + HtpmsCustomerConnectionSwitch::switch($this->user->customer_id); + } + $user = Auth::user(); $ckeck = Auth::check(); if ($this->user === null) {