diff --git a/src/Auth/Guard.php b/src/Auth/Guard.php index 30522c7..2efa3b2 100644 --- a/src/Auth/Guard.php +++ b/src/Auth/Guard.php @@ -216,7 +216,7 @@ protected function hasValidCredentials($user, $credentials) * Login a given user. It means, generate a new token for a user. * * @param Authenticatable $user - * @return mixed + * @return $this */ public function login(Authenticatable $user) { @@ -226,6 +226,8 @@ public function login(Authenticatable $user) $this->fireLoginEvent($user); $this->setUser($user); + + return $this; } /**