Skip to content

Commit

Permalink
update call
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jun 8, 2021
1 parent 64b30b4 commit 2c8b9a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Guard.php
Expand Up @@ -71,11 +71,11 @@ public function __invoke(Request $request)
}

if (method_exists($accessToken->getConnection(), 'hasModifiedRecords') &&
method_exists($accessToken->getConnection(), 'recordsHaveBeenModified')) {
method_exists($accessToken->getConnection(), 'setRecordModificationState')) {
tap($accessToken->getConnection()->hasModifiedRecords(), function ($hasModifiedRecords) use ($accessToken) {
$accessToken->forceFill(['last_used_at' => now()])->save();

$accessToken->getConnection()->recordsHaveBeenModified($hasModifiedRecords);
$accessToken->getConnection()->setRecordModificationState($hasModifiedRecords);
});
} else {
$accessToken->forceFill(['last_used_at' => now()])->save();
Expand Down

0 comments on commit 2c8b9a1

Please sign in to comment.