From 93aed95b2b1bbfad7f5cad4fab8844dbbbbbfadd Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Tue, 19 Nov 2024 11:30:44 -0600 Subject: [PATCH] document new cache driver --- passwords.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/passwords.md b/passwords.md index 1f2ae5c7489..a40ae21adf0 100644 --- a/passwords.md +++ b/passwords.md @@ -3,6 +3,7 @@ - [Introduction](#introduction) - [Model Preparation](#model-preparation) - [Database Preparation](#database-preparation) + - [Cache Preparation](#cache-preparation) - [Configuring Trusted Hosts](#configuring-trusted-hosts) - [Routing](#routing) - [Requesting the Password Reset Link](#requesting-the-password-reset-link) @@ -28,7 +29,12 @@ Next, verify that your `App\Models\User` model implements the `Illuminate\Contra ### Database Preparation -A table must be created to store your application's password reset tokens. Typically, this is included in Laravel's default `0001_01_01_000000_create_users_table.php` database migration. +If you are using the default database driver for password resets, a table must be created to store your application's password reset tokens. Typically, this is included in Laravel's default `0001_01_01_000000_create_users_table.php` database migration. + + +### Cache Preparation + +You may also use a cache driver for handling password resets. In your `config/auth.php` add a `'driver' => 'cache'` entry for the desired connection. While you *can* use the default cache store, to avoid accidentally wiping the passwords reset cache it is **recommended** to create a dedicated store, and then designating that store with `'store' => 'password-store'`. ### Configuring Trusted Hosts