PHP Interface Krucas\LaravelUserEmailVerification\Contracts\TokenRepositoryInterface

Show file Open project: edvinaskrucas/laravel-user-email-verification Interface Usage Examples

Public Methods

Method Description
create ( Krucas\LaravelUserEmailVerification\Contracts\RequiresEmailVerification $user ) : string Create a new token.
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.

Method Details

create() public method

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

delete() public method

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

deleteExpired() public method

Delete expired tokens.
public deleteExpired ( ) : void
return void

exists() public method

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
return boolean