TokenRepositoryInterface (Auth\Passwords)

TokenRepositoryInterface

interface TokenRepositoryInterface (View source)

Methods

string create( CanResetPassword $user)

Create a new token.

bool exists( CanResetPassword $user, string $token)

Determine if a token record exists and is valid.

void delete( string $token)

Delete a token record.

void deleteExpired()

Delete expired tokens.

Details

string create( CanResetPassword $user)

Create a new token.

Parameters

CanResetPassword $user

Return Value

string

bool exists( CanResetPassword $user, string $token)

Determine if a token record exists and is valid.

Parameters

CanResetPassword $user
string $token

Return Value

bool

void delete( string $token)

Delete a token record.

Parameters

string $token

Return Value

void

void deleteExpired()

Delete expired tokens.

Return Value

void

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Auth/Passwords/TokenRepositoryInterface.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部