We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5a1741e + 3d51200 commit 9acf541Copy full SHA for 9acf541
laravel/auth/drivers/driver.php
@@ -127,6 +127,8 @@ public function logout()
127
$this->cookie($this->recaller(), null, -2000);
128
129
Session::forget($this->token());
130
+
131
+ $this->token = null;
132
}
133
134
/**
laravel/tests/cases/auth.test.php
@@ -294,9 +294,6 @@ public function testLogoutMethodLogsOutUser()
294
295
Auth::logout();
296
297
- // A workaround since Cookie will is only stored in memory, until Response class is called.
298
- Auth::driver()->token = null;
299
-
300
$this->assertNull(Auth::user());
301
302
$this->assertFalse(isset(Session::$instance->session['data']['laravel_auth_drivers_fluent_login']));
0 commit comments