From 70c0021b9481433dd6c84704d2ebb05cf04a790a Mon Sep 17 00:00:00 2001 From: John Mwakalinga Date: Thu, 18 Jul 2024 15:27:26 +0300 Subject: [PATCH] updates readme --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 76a5568..51a4382 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,7 @@ class User extends Authenticatable use HasPasswordExpiry; ... } +``` You are all good to go! Now when a user is created, the password_expires_at column will be updated with the current date and time plus the expires_in config value. When the user tries to login, the middleware will check if the password_expires_at column is less than the current date and time. If it is, the user will be redirected to the password expiry page.