From 59b70dd4f4f4cd2b8ef09b36d653cdc470d3b40f Mon Sep 17 00:00:00 2001 From: ahmadhuss Date: Fri, 14 May 2021 15:35:32 +0500 Subject: [PATCH] feat: Reset password form and routes are partial configured! --- routes/web.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/routes/web.php b/routes/web.php index 6afa5ba..d0053b1 100644 --- a/routes/web.php +++ b/routes/web.php @@ -54,6 +54,8 @@ // Password Reset Route::get('password/reset', [AdminForgotPasswordController::class, 'showLinkRequestForm'])->name('admin.password.request'); // This name route is used inside the admin `login.blade.php` file to show the forgot password link which is nothing but shows an email blade.php file. // We explicitly are not defining the method `sendResetLinkEmail()` inside the controller instead we are using same master body of this method which is defined inside the `AdminForgotPasswordController` trait `SendsPasswordResetEmails` method. + // This route will not properly work because the method `sendResetLinkEmail()` will send reset password + // link with the use of 1 more GET route named `localhost/admin/password/reset/${token}` Route::post('password/email', [AdminForgotPasswordController::class, 'sendResetLinkEmail'])->name('admin.password.email'); // The email.blade.php form file will use this route to send post request.