From 69926da0ecc0f2bd8bf92c40b1d09bbb5a21ee0b Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Tue, 17 Jan 2023 13:12:59 -0600 Subject: [PATCH] revert breaking change --- GuardHelpers.php | 2 ++ SessionGuard.php | 2 ++ 2 files changed, 4 insertions(+) diff --git a/GuardHelpers.php b/GuardHelpers.php index 00b7ed34..8e7b451c 100644 --- a/GuardHelpers.php +++ b/GuardHelpers.php @@ -91,6 +91,8 @@ public function id() public function setUser(AuthenticatableContract $user) { $this->user = $user; + + return $this; } /** diff --git a/SessionGuard.php b/SessionGuard.php index 767fc0b3..769edb20 100644 --- a/SessionGuard.php +++ b/SessionGuard.php @@ -923,6 +923,8 @@ public function setUser(AuthenticatableContract $user) $this->loggedOut = false; $this->fireAuthenticatedEvent($user); + + return $this; } /**