CacheTokenRepository
class CacheTokenRepository implements TokenRepositoryInterface (View source)
Properties
| protected string | $format | The format of the stored Carbon object. |
Methods
Create a new token repository instance.
Determine if the token has expired.
Determine if the given user recently created a password reset token.
Determine if the token was recently created.
Delete expired tokens.
Details
__construct(Repository $cache, Hasher $hasher, string $hashKey, int $expires = 3600, int $throttle = 60, string $prefix = '')
Create a new token repository instance.
string
create(CanResetPassword $user)
Create a new token.
bool
exists(CanResetPassword $user, string $token)
Determine if a token record exists and is valid.
protected 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.
protected bool
tokenRecentlyCreated(string $createdAt)
Determine if the token was recently created.
void
delete(CanResetPassword $user)
Delete a token record.
void
deleteExpired()
Delete expired tokens.
Laravel Cloud is the best place to deploy Laravel, Nuxt, Express, Hono, Node.js, Bun, Go, Flask, Python, and more, with dedicated infrastructure available on AWS through Laravel Private Cloud.