RegisterTokenRepository
class RegisterTokenRepository
회원가입시 회원가입 자격을 인증하는 register token의 Repository
Properties
private ConnectionInterface | $connection | The database connection instance. | |
private string | $table | The register-token database table. | |
private int | $expires | The number of seconds a token should last. | |
private Keygen | $keygen |
Methods
Create a new token repository instance.
Create a new token record.
find token
Determine if a token record exists and is valid.
Determine if the token has expired.
Get the current UNIX timestamp.
Delete a token record by token.
Delete expired tokens.
Create a new token id
Begin a new database query against the table.
Get the database connection instance.
convert token info to token entity
Details
at line 68
__construct(ConnectionInterface $connection, Keygen $keygen, string $table, int $expires = 60)
Create a new token repository instance.
at line 84
Fluent
create(string $guard, array $data)
Create a new token record.
at line 107
Fluent|null
find(string $id)
find token
at line 125
bool
exists(string $id)
Determine if a token record exists and is valid.
at line 139
private bool
tokenExpired(array $token)
Determine if the token has expired.
at line 151
private int
getCurrentTime()
Get the current UNIX timestamp.
at line 163
void
delete(string $id)
Delete a token record by token.
at line 173
void
deleteExpired()
Delete expired tokens.
at line 185
private string
createNewToken()
Create a new token id
at line 195
private Builder
getTable()
Begin a new database query against the table.
at line 205
ConnectionInterface
getConnection()
Get the database connection instance.
at line 219
protected Fluent
resolveToken(string $id, string $guard, array $data)
convert token info to token entity