From 2f50a0e90fda23fa92710ab7fc2dd0d6fa6a97d5 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Thu, 15 Dec 2022 16:05:31 +0800 Subject: [PATCH] update: auth service --- app/Services/AuthService.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/Services/AuthService.php b/app/Services/AuthService.php index 1e28ed13..09ceee7f 100644 --- a/app/Services/AuthService.php +++ b/app/Services/AuthService.php @@ -75,4 +75,9 @@ class AuthService $sessions )) return false; } + + public function getSessions() + { + return (array)Cache::get(CacheKey::get("USER_SESSIONS", $this->user->id), []); + } }