DatabaseTokenRepository
class DatabaseTokenRepository implements TokenRepositoryInterface (View source)
Methods
void
__construct(
ConnectionInterface $connection,
string $table,
string $hashKey,
int $expires = 60)
Create a new token repository instance.
string
bool
void
delete(
string $token)
Delete a token record by token.
void
deleteExpired()
Delete expired tokens.
string
createNewToken()
Create a new token for the user.
getConnection()
Get the database connection instance.
Details
at line line 49
void
__construct(
ConnectionInterface $connection,
string $table,
string $hashKey,
int $expires = 60)
Create a new token repository instance.
at line line 109
bool
exists(
CanResetPassword $user,
string $token)
Determine if a token record exists and is valid.