PHP 클래스 Krucas\LaravelUserEmailVerification\DatabaseTokenRepository

상속: implements Krucas\LaravelUserEmailVerification\Contracts\TokenRepositoryInterface
파일 보기 프로젝트 열기: edvinaskrucas/laravel-user-email-verification

보호된 프로퍼티들

프로퍼티 타입 설명
$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 ( ) : Builder 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.

메소드 상세

__construct() 공개 메소드

Create a new token repository instance.
public __construct ( Illuminate\Database\ConnectionInterface $connection, string $table, string $hashKey, integer $expires )
$connection Illuminate\Database\ConnectionInterface
$table string
$hashKey string
$expires integer

create() 공개 메소드

Create a new token.
public create ( Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification $user ) : string
$user Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification
리턴 string

createNewToken() 공개 메소드

Create a new token for the user.
public createNewToken ( ) : string
리턴 string

delete() 공개 메소드

Delete token record.
public delete ( string $token ) : void
$token string
리턴 void

deleteExisting() 보호된 메소드

Delete all existing reset tokens from the database.
protected deleteExisting ( Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification $user ) : integer
$user Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification
리턴 integer

deleteExpired() 공개 메소드

Delete expired tokens.
public deleteExpired ( ) : void
리턴 void

exists() 공개 메소드

Determine if a token record exists and is valid.
public exists ( Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification $user, string $token ) : boolean
$user Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification
$token string
리턴 boolean

getConnection() 공개 메소드

Get the database connection instance.
public getConnection ( ) : Illuminate\Database\ConnectionInterface
리턴 Illuminate\Database\ConnectionInterface

getCurrentTime() 보호된 메소드

Get the current UNIX timestamp.
protected getCurrentTime ( ) : integer
리턴 integer

getPayload() 보호된 메소드

Build the record payload for the table.
protected getPayload ( string $email, string $token ) : array
$email string
$token string
리턴 array

getTable() 보호된 메소드

Begin a new database query against the table.
protected getTable ( ) : Builder
리턴 Illuminate\Database\Query\Builder

isExpirationEnabled() 보호된 메소드

Determine if token expiration is enabled or disabled.
protected isExpirationEnabled ( ) : boolean
리턴 boolean

tokenExpired() 보호된 메소드

Determine if the token has expired.
protected tokenExpired ( array $token ) : boolean
$token array
리턴 boolean

프로퍼티 상세

$connection 보호되어 있는 프로퍼티

The database connection instance.
protected ConnectionInterface,Illuminate\Database $connection
리턴 Illuminate\Database\ConnectionInterface

$expires 보호되어 있는 프로퍼티

The number of seconds a token should last.
protected int $expires
리턴 integer

$hashKey 보호되어 있는 프로퍼티

The hashing key.
protected string $hashKey
리턴 string

$table 보호되어 있는 프로퍼티

The token database table.
protected string $table
리턴 string