Clearing Expired Password Reminders

Problem

Your password reminders table is getting large.

Lots of records exist in the table.

Solution

Use the php artisan auth:clear-reminders command.

This will clear out any expired tokens from the password_reminders table.

$ php artisan auth:clear-reminders

Discussion

Run this command periodically.

You may even want to have a cron job run this once a day or once a week.

comments powered by Disqus