Creating a Migration for Password Reminders

Problem

You want to create a table to store password reminders.

Solution

Use the php artisan auth:reminders command.

$ php artisan auth:reminders

This creates a new migration which will create a password_reminders table.

After creating the migration, don't forget to run migrations to update your database with the new table.

$ php artisan migrate

Discussion

Laravel provides a skeleton for implementing password reminders.

You'll still need to fill in the details for your application. Creating the reminders table is only one of the steps.

comments powered by Disqus

Recommended by us