interface TokenRepositoryInterface (View source)

Methods

string
create(CanResetPassword $user)

Create a new token.

bool
exists(CanResetPassword $user, string $token)

Determine if a token record exists and is valid.

bool
recentlyCreatedToken(CanResetPassword $user)

Determine if the given user recently created a password reset token.

void
delete(CanResetPassword $user)

Delete a token record.

void
deleteExpired()

Delete expired tokens.

Details

string create(CanResetPassword $user)

Create a new token.

Parameters

CanResetPassword $user

Return Value

string

bool exists(CanResetPassword $user, string $token)

Determine if a token record exists and is valid.

Parameters

CanResetPassword $user
string $token

Return Value

bool

bool recentlyCreatedToken(CanResetPassword $user)

Determine if the given user recently created a password reset token.

Parameters

CanResetPassword $user

Return Value

bool

void delete(CanResetPassword $user)

Delete a token record.

Parameters

CanResetPassword $user

Return Value

void

void deleteExpired()

Delete expired tokens.

Return Value

void

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.