Laravel Artisan General Command: The clear-resets Command

December 7, 2016 —John Koster

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.

Some absolutely amazing

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.