Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

redon's avatar
Level 1

Password Reset form shows ERROR 404

Hello I've a problem with my project. I used the make:auth to create automatically the login,registration and reset password page. I modified the env.file so that i can send the password reset link to the email using mailtrap, and it works, but there is another problem. When i click on the Reset Password button in the email it redirects me to a Error not found page. I wrote down the routes in web.php based on php artisan route:list I looked the controllers I checked the URL's nothing wrong it jusst wont open the reset.blade.php. If anyone could give any useful suggestions I'd be grateful. Thankyou very much.

0 likes
21 replies
ejdelmonico's avatar

Have you copied the url from the button and tried it in a new browser tab?

redon's avatar
Level 1

@EJDELMONICO - Yes, tried it in a new tab, even in another browser but still only "Error|404"

Snapey's avatar

Is the domain on the password reset link exactly the same as when you use the site

redon's avatar
Level 1

if you are asking about the domain in my site its in localhost and first I got the error not being able to find such a page.But i edited my env file (ADD_URL) and php artisan config:cache and clear, then it started to open on the right domain but with the Error 404.

this is my action in Illuminate\Auth\Notifications\ResetPassword.php: ->action(Lang::getFromJson('Reset Password'), url(config('app.url').route('password.reset', ['token' => $this->token], false)))

ejdelmonico's avatar

I am assuming the dev domain is correct since you received a 404. Did you modify or override any of the included auth?

Snapey's avatar

Is it a laravel 404 error message?

redon's avatar
Level 1

@EJDELMONICO - Im a little new to Laravel so it would really help me if you were a little more specific, thanks btw.

Snapey's avatar

What's the FULL URL of the password reset page (where you request a reset) ?

What's the FULL URL of the link in the email?

ejdelmonico's avatar

Meaning did you override any of the standard auth views or controllers? How are you serving the site? Make sure the APP_URL is correct.

redon's avatar
Level 1

@EJDELMONICO - no I used the standart ones, i didnt change a single thing. this are the routes that i wrote in my web.php: Route::post('/password/email', 'Auth\ForgotPasswordController@sendResetLinkEmail')->name('password.email'); Route::post('/password/reset', 'Auth\ResetPasswordController@reset')->name('password.update'); Route::get('/password/reset','Auth\ForgotPasswordController@showLinkRequestForm')->name('password.request'); Route::get('/password/reset/{token}', 'Auth\ResetPasswordController@showResetForm')->name('password.reset');

Snapey's avatar

myApp versus myapp

Also, you should fix your webserver so that public is the 'document root'. You should not see the word public in you urls

redon's avatar
Level 1

@EJDELMONICO - now im getting "Payload is invalid" this is in my illuminate\auth\notification\resetpassword:

return (new MailMessage) ->subject(Lang::getFromJson('Reset Password Notification')) ->line(Lang::getFromJson('You are receiving this email because we received a password reset request for your account.')) ->action(Lang::getFromJson('Reset Password'), url(config('app.url').route('password.reset', ['token' => $this->token], false))) ->line(Lang::getFromJson('This password reset link will expire in :count minutes.', ['count' => config('auth.passwords.users.expire')])) ->line(Lang::getFromJson('If you did not request a password reset, no further action is required.'));

ejdelmonico's avatar

By default, the reset token is only valid for 1 hour If I remember correctly. So, try a valid token.

redon's avatar
Level 1

well thankyou but it aint working,I used migrate:fresh, restarted the xampp server used confgi:cache so that i genereate a fresh token but still invalid payload. I have no idea where to look anymore so im just trying it in a new project maybe it will work there who knows, but thankyou very much for your generosity and help, i really appreciate it.

Snapey's avatar

if starting again, google forxampp set document root

Please or to participate in this conversation.