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

Amalmax's avatar

Password Reset Link

Hey, In Laravel 5.2 there is Password Reset Password Link form. My Problem is when we submit password reset form it is generated reset link in our inbox. I need to know where is the files to generate this link in our Inbox?

0 likes
6 replies
SmoDav's avatar

Have a look at resources/views/auth/passwords. You will find the views there

SmoDav's avatar

Have a look at resources\views\auth\emails\password.blade.php. This file is used as a view when sending an email. The email is created and sent using the PasswordController which uses the ResetsPasswords trait. Have a look at the trait.

1 like
naime's avatar

In ResetPassword.php. /vendor/laravel/framework/src/Illuminate/Auth/Notifications/ResetPassword.php

jorgegamez's avatar

in ResetPassword.php. /vendor/laravel/framework/src/Illuminate/Auth/Notifications/ResetPassword.php edit the function toMail con app.port

public function toMail($notifiable) { return (new MailMessage) ->line('You are receiving this email because we received a password reset request for your account.') ->action('Reset Password', url(config('app.url'.':'.'app.port').route('password.reset', $this->token, false))) ->line('If you did not request a password reset, no further action is required.'); }

lax's avatar

thank you jorgegamez .... i fixed my error

Please or to participate in this conversation.