DatabaseReminderRepository (Auth\Reminders)

DatabaseReminderRepository

class DatabaseReminderRepository implements ReminderRepositoryInterface (View source)

Methods

void __construct(Connection $connection, string $table, string $hashKey, int $expires = 60)

Create a new reminder repository instance.

string create(RemindableInterface $user)

Create a new reminder record and token.

bool exists(RemindableInterface $user, string $token)

Determine if a reminder record exists and is valid.

void delete(string $token)

Delete a reminder record by token.

void deleteExpired()

Delete expired reminders.

string createNewToken(RemindableInterface $user)

Create a new token for the user.

Connection getConnection()

Get the database connection instance.

Details

void __construct(Connection $connection, string $table, string $hashKey, int $expires = 60)

Create a new reminder repository instance.

Parameters

Connection $connection
string $table
string $hashKey
int $expires

Return Value

void

string create(RemindableInterface $user)

Create a new reminder record and token.

Parameters

RemindableInterface $user

Return Value

string

bool exists(RemindableInterface $user, string $token)

Determine if a reminder record exists and is valid.

Parameters

RemindableInterface $user
string $token

Return Value

bool

void delete(string $token)

Delete a reminder record by token.

Parameters

string $token

Return Value

void

void deleteExpired()

Delete expired reminders.

Return Value

void

string createNewToken(RemindableInterface $user)

Create a new token for the user.

Parameters

RemindableInterface $user

Return Value

string

Connection getConnection()

Get the database connection instance.

Return Value

Connection

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Auth/Reminders/DatabaseReminderRepository.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部