From e2dd462e65221e8eb901147b517a3574db7399f7 Mon Sep 17 00:00:00 2001 From: Iman Date: Wed, 26 Jun 2024 23:36:58 +0330 Subject: [PATCH] use `Macroable` trait on TokenGuard The sibling `RequestGuard` and `SessionGuard` are macroable but suddenly the token guard is not. This breaks for my package users when they switch their guard to TokenGuard. https://github.com/imanghafoori1/laravel-MasterPass/issues/53 --- src/Illuminate/Auth/TokenGuard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Illuminate/Auth/TokenGuard.php b/src/Illuminate/Auth/TokenGuard.php index 7fe5a9f7802a..b78dc0430452 100644 --- a/src/Illuminate/Auth/TokenGuard.php +++ b/src/Illuminate/Auth/TokenGuard.php @@ -8,7 +8,7 @@ class TokenGuard implements Guard { - use GuardHelpers; + use GuardHelpers, Macroable; /** * The request instance.