hughsaffar's avatar

Change to AuthenticatesUsers.php

Hey folks,

I did some modification on AuthenticatesUsers.php in order to add third argument as credential and it works perfectly on local development machine. Just wondering how can I make sure that followed by any updates the code will not reset to the original and how can I upload it to my server? When I git push, the file is ignored as a part of vendor directories which are ignored in .gitignore.

0 likes
2 replies
hughsaffar's avatar
hughsaffar
OP
Best Answer
Level 21

Found the solution! Had to apply the changes on AuthController in order to over-ride.

stueynet's avatar

Hey was hoping you could provide a bit more info. I was also hoping to add to the Authenticate workflow. Specifically adding auth tokens to the response when a user logs in. How does one extend the built in Laravel authentication without rewriting the trait completely?

1 like

Please or to participate in this conversation.