芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/kwesioben.com/paymoney/vendor/laravel/passport/src/RefreshTokenRepository.php
create($attributes); } /** * Gets a refresh token by the given ID. * * @param string $id * @return \Laravel\Passport\RefreshToken */ public function find($id) { return Passport::refreshToken()->where('id', $id)->first(); } /** * Stores the given token instance. * * @param \Laravel\Passport\RefreshToken $token * @return void */ public function save(RefreshToken $token) { $token->save(); } /** * Revokes the refresh token. * * @param string $id * @return mixed */ public function revokeRefreshToken($id) { return Passport::refreshToken()->where('id', $id)->update(['revoked' => true]); } /** * Revokes refresh tokens by access token id. * * @param string $tokenId * @return void */ public function revokeRefreshTokensByAccessTokenId($tokenId) { Passport::refreshToken()->where('access_token_id', $tokenId)->update(['revoked' => true]); } /** * Checks if the refresh token has been revoked. * * @param string $id * @return bool */ public function isRefreshTokenRevoked($id) { if ($token = $this->find($id)) { return $token->revoked; } return true; } }