Свойство | Тип | Описание | |
---|---|---|---|
$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. |
Метод | Описание | |
---|---|---|
__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. |
Метод | Описание | |
---|---|---|
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 | ||
Результат | string |
protected deleteExisting ( Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification $user ) : integer | ||
$user | Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification | |
Результат | integer |
public deleteExpired ( ) : void | ||
Результат | void |
public getConnection ( ) : Illuminate\Database\ConnectionInterface | ||
Результат | Illuminate\Database\ConnectionInterface |
protected getCurrentTime ( ) : integer | ||
Результат | integer |
protected getTable ( ) : |
||
Результат |
protected isExpirationEnabled ( ) : boolean | ||
Результат | boolean |
protected tokenExpired ( array $token ) : boolean | ||
$token | array | |
Результат | boolean |
protected ConnectionInterface,Illuminate\Database $connection | ||
Результат | Illuminate\Database\ConnectionInterface |
protected int $expires | ||
Результат | integer |