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.
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.1/Illuminate/Auth/Reminders/DatabaseReminderRepository.html