Property | Type | Description | |
---|---|---|---|
$connection | Illuminate\Database\ConnectionInterface | The database connection instance. | |
$expires | integer | The number of seconds a token should last. | |
$hashKey | string | The hashing key. | |
$table | string | The token database table. |
Method | Description | |
---|---|---|
__construct ( Illuminate\Database\ConnectionInterface $connection, string $table, string $hashKey, integer $expires ) | Create a new token repository instance. | |
create ( Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification $user ) : string | Create a new token. | |
createNewToken ( ) : string | Create a new token for the user. | |
delete ( string $token ) : void | Delete token record. | |
deleteExpired ( ) : void | Delete expired tokens. | |
exists ( Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification $user, string $token ) : boolean | Determine if a token record exists and is valid. | |
getConnection ( ) : Illuminate\Database\ConnectionInterface | Get the database connection instance. |
Method | Description | |
---|---|---|
deleteExisting ( Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification $user ) : integer | Delete all existing reset tokens from the database. | |
getCurrentTime ( ) : integer | Get the current UNIX timestamp. | |
getPayload ( string $email, string $token ) : array | Build the record payload for the table. | |
getTable ( ) : |
Begin a new database query against the table. | |
isExpirationEnabled ( ) : boolean | Determine if token expiration is enabled or disabled. | |
tokenExpired ( array $token ) : boolean | Determine if the token has expired. |
public createNewToken ( ) : string | ||
return | string |
protected deleteExisting ( Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification $user ) : integer | ||
$user | Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification | |
return | integer |
public getConnection ( ) : Illuminate\Database\ConnectionInterface | ||
return | Illuminate\Database\ConnectionInterface |
protected getCurrentTime ( ) : integer | ||
return | integer |
protected getTable ( ) : |
||
return |
protected isExpirationEnabled ( ) : boolean | ||
return | boolean |
protected tokenExpired ( array $token ) : boolean | ||
$token | array | |
return | boolean |
protected ConnectionInterface,Illuminate\Database $connection | ||
return | Illuminate\Database\ConnectionInterface |
protected int $expires | ||
return | integer |