DatabaseReminderRepository
class DatabaseReminderRepository implements ReminderRepositoryInterface (View source)
Properties
protected Connection | $connection | The database connection instance. | |
protected string | $table | The reminder database table. | |
protected string | $hashKey | The hashing key. | |
protected int | $expires | The number of seconds a reminder should last. |
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. | |
int | deleteExisting(RemindableInterface $user) Delete all existing reset tokens from the database. | |
array | getPayload(string $email, string $token) Build the record payload for the table. | |
bool | exists(RemindableInterface $user, string $token) Determine if a reminder record exists and is valid. | |
bool | reminderExpired(array $reminder) Determine if the reminder has expired. | |
int | getCurrentTime() Get the current UNIX timestamp. | |
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. | |
Builder | getTable() Begin a new database query against the table. | |
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.
string create(RemindableInterface $user)
Create a new reminder record and token.
protected int deleteExisting(RemindableInterface $user)
Delete all existing reset tokens from the database.
protected array getPayload(string $email, string $token)
Build the record payload for the table.
bool exists(RemindableInterface $user, string $token)
Determine if a reminder record exists and is valid.
protected bool reminderExpired(array $reminder)
Determine if the reminder has expired.
protected int getCurrentTime()
Get the current UNIX timestamp.
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.
protected Builder getTable()
Begin a new database query against the table.
Connection getConnection()
Get the database connection instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.5/Illuminate/Auth/Reminders/DatabaseReminderRepository.html