I am using the Laravel auth package in a Laravel 10 project. The Forgot Password link used to work a few weeks ago. I don't know what changed, but when I click the Forgot Your Password link, it displays the Password Reset form for a moment and then redisplays the Login form. The routes:list does display routes for password reset.
GET|HEAD password/confirm .................. password.confirm › Auth\ConfirmPasswordController@showConfirmForm
POST password/confirm ...................Auth\ConfirmPasswordController@confirm
POST password/email .............. password.email › Auth\ForgotPasswordController@sendResetLinkEmail
GET|HEAD password/reset ................. password.request › Auth\ForgotPasswordController@showLinkRequestForm
POST password/reset ........................ password.update › Auth\ResetPasswordController@reset
Any suggestion on how to fix this issue?
The layouts file (@extends('layouts.app')) in resources/views/auth/passwords/email.blade.php was causing the issue as in this file, I added few Javsscript files for JQuery and others, which I need for my application. To fix the issue, I created another layouts file for use with email.blade.php, as given.