Laravel Artisan General Command: The clear-resets Command


John Koster

Published on December 7, 2016

The auth:clear-resets can be used to remove expired password reset tokens from the database. The command defines an optional name parameter which can be used which password broker will be used when removing the expired reset tokens (by default the value of this is users or whatever value is set for the auth.defaults.passwords configuration entry).

The following are examples of how the auth:clear-resets command can be called:

1php artisan auth:clear-resets
2php artisan auth:clear-resets users

The auth:clear-rests command will clear the expired password reset tokens in the password_resets database table.

Explore The Blog

Laravel String Helper Function: random

Published on November 16, 2016

Read More

Laravel Miscellaneous Helper Function: dd

Published on November 21, 2016

Read More