DatabaseTokenRepository (Auth\Passwords)
DatabaseTokenRepository
class DatabaseTokenRepository implements TokenRepositoryInterface (View source)
Methods
void | __construct(ConnectionInterface $connection, Hasher $hasher, string $table, string $hashKey, int $expires = 60) Create a new token repository instance. | |
string | create(CanResetPassword $user) Create a new token record. | |
bool | exists(CanResetPassword $user, string $token) Determine if a token record exists and is valid. | |
void | delete(CanResetPassword $user) Delete a token record by user. | |
void | deleteExpired() Delete expired tokens. | |
string | createNewToken() Create a new token for the user. | |
ConnectionInterface | getConnection() Get the database connection instance. | |
Hasher | getHasher() Get the hasher instance. |
Details
void __construct(ConnectionInterface $connection, Hasher $hasher, string $table, string $hashKey, int $expires = 60)
Create a new token repository instance.
string create(CanResetPassword $user)
Create a new token record.
bool exists(CanResetPassword $user, string $token)
Determine if a token record exists and is valid.
void delete(CanResetPassword $user)
Delete a token record by user.
void deleteExpired()
Delete expired tokens.
string createNewToken()
Create a new token for the user.
ConnectionInterface getConnection()
Get the database connection instance.
Hasher getHasher()
Get the hasher instance.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.4/Illuminate/Auth/Passwords/DatabaseTokenRepository.html