perf: include request info in first accesstoken touch (#3233)

This commit is contained in:
David Wheatley 2021-12-28 10:17:11 +01:00 committed by GitHub
parent 066cf02b88
commit 809620750f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,7 @@ class RememberFromCookie implements Middleware
$token = AccessToken::findValid($id);
if ($token && $token instanceof RememberAccessToken) {
$token->touch();
$token->touch($request);
/** @var \Illuminate\Contracts\Session\Session $session */
$session = $request->getAttribute('session');