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

alangatt's avatar

Auth Deploy Question

Good morning, I have made a change to the file SendsPasswordResetEmails.php in the folder vendor\laravel\framework\src\Illuminate\Foundation\Auth\SendsPasswordResetEmails.php.

However, this is not uploaded to GIT. I am using Heroku to deploy, so changes done in this file will not be deployed.

What is the correct procedure?

Thank you.

0 likes
6 replies
Snapey's avatar

Please, never change any code in the vendor folder. This will not be committed to source control and will be overwritten by future updates

Snapey's avatar

if it solves your problem, please mark best answer

alangatt's avatar

One last thing, if I click on Forgot Password, there is the button to reset the password, can I remove the validation "We can't find a user with that e-mail address." on the input field since this shows who is using the service and who's not.

Snapey's avatar

Look in the translation files

resources/lang/en/password.php

change the 'user' translation to whatever you want. Not sure the behavior will give the game away, eg 'We will send password reset email to the address you specified' - but then still leaving them on the password reset page.

The thing you will notice about most of the authentication classes, they are just shells that include the desired functionality via traits. This means that you can follow the link to the trait (eg 'SendsPasswordResetEmails) and then replace any of the functions with your own versions in the ForgotPasswordController

Please or to participate in this conversation.