From 9c82452d93986a877ea606153125304e1104c7f7 Mon Sep 17 00:00:00 2001 From: Martin Rehberger <2728418+kingkero@users.noreply.github.com> Date: Sat, 2 Mar 2024 15:26:05 +0100 Subject: [PATCH] :sparkles: Add new getter for JWT's factory (#2233) --- src/JWTGuard.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/JWTGuard.php b/src/JWTGuard.php index 31957072..8c82ba81 100644 --- a/src/JWTGuard.php +++ b/src/JWTGuard.php @@ -351,6 +351,16 @@ public function setRequest(Request $request) return $this; } + /** + * Get the token's auth factory. + * + * @return \Tymon\JWTAuth\Factory + */ + public function factory() + { + return $this->jwt->factory(); + } + /** * Get the last user we attempted to authenticate. *