How to make changes in the vendor folder?

There is a project on Laurele, and it uses the standard Authorization system. But I had to modify it a bit. Or rather that part which is on the way vendor/laravel/framework/src/Auth/Passowrds/PasswordBroker.php - namely, to alter the logic of the password.(template + parallel actions)

Interested in how to make such changes? But it turns out that now to deploy the project without "modifitsirovannoi" folder vendor is not. Thanks in advance for the answer.

PS Laravel 5.2
August 19th 19 at 23:46
2 answers
August 19th 19 at 23:48
Solution
In the folder vendor to make changes impossible. If you need to change the logic for Auth/Passwords, it was possible to try to solve this issue by writing code in the app/http/controllers/auth/PasswordController file
Thank you, I understand that there's nothing better than to touch it, but the thing is that elsewhere these functions (emailResetLink public function, public function sendResetLink) are not available.. or any way to expand is to clone? - Vivienne.Fritsch commented on August 19th 19 at 23:51
: Yes, to expand methods, the same method emailResetLink you can write to the PasswordController - jedidiah13 commented on August 19th 19 at 23:54
August 19th 19 at 23:50
Solution
The vendor folder should be in read-only mode. If you need to extend or override the logic, it is possible to take advice . If you need something to patch or change a bag seriously, you can forgot him and rule as a separate project. Then the composer to replace the dependence on its own, by adding your repository as a source.

Find more questions by tags GitLaravel