CacheTokenRepository
class CacheTokenRepository implements TokenRepositoryInterface
Properties
| protected string | $format | The format of the stored Carbon object. |
Methods
__construct(Repository $cache, Hasher $hasher, string $hashKey, int $expires = 3600, int $throttle = 60)
Create a new token repository instance.
string
bool
bool
tokenExpired(string $createdAt)
Determine if the token has expired.
bool
recentlyCreatedToken(CanResetPassword $user)
Determine if the given user recently created a password reset token.
bool
tokenRecentlyCreated(string $createdAt)
Determine if the token was recently created.
void
void
deleteExpired()
Delete expired tokens.
string
Details
at line 24
__construct(Repository $cache, Hasher $hasher, string $hashKey, int $expires = 3600, int $throttle = 60)
Create a new token repository instance.
at line 36
string
create(CanResetPassword $user)
Create a new token.
at line 54
bool
exists(CanResetPassword $user, string $token)
Determine if a token record exists and is valid.
at line 66
protected bool
tokenExpired(string $createdAt)
Determine if the token has expired.
at line 74
bool
recentlyCreatedToken(CanResetPassword $user)
Determine if the given user recently created a password reset token.
at line 84
protected bool
tokenRecentlyCreated(string $createdAt)
Determine if the token was recently created.
at line 98
void
delete(CanResetPassword $user)
Delete a token record.
at line 106
void
deleteExpired()
Delete expired tokens.
at line 114
string
cacheKey(CanResetPassword $user)
Determine the cache key for the given user.