PATH:
home
/
lab2454c
/
costbloc.com
/
vendor
/
laravel
/
passport
/
src
<?php namespace Laravel\Passport; class RefreshTokenRepository { /** * Creates a new refresh token. * * @param array $attributes * @return \Laravel\Passport\RefreshToken */ public function create($attributes) { return Passport::refreshToken()->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; } }
[+]
Exceptions
[-] TransientToken.php
[edit]
[-] AuthCode.php
[edit]
[+]
Bridge
[-] ApiTokenCookieFactory.php
[edit]
[+]
..
[+]
Guards
[-] Scope.php
[edit]
[-] HasApiTokens.php
[edit]
[-] PersonalAccessClient.php
[edit]
[-] Passport.php
[edit]
[-] RefreshTokenRepository.php
[edit]
[+]
Events
[-] Token.php
[edit]
[-] Client.php
[edit]
[-] PersonalAccessTokenFactory.php
[edit]
[-] RouteRegistrar.php
[edit]
[-] ClientRepository.php
[edit]
[-] RefreshToken.php
[edit]
[+]
Console
[-] TokenRepository.php
[edit]
[-] PassportServiceProvider.php
[edit]
[-] PersonalAccessTokenResult.php
[edit]
[+]
Http
[-] PassportUserProvider.php
[edit]