Great article. Thank you very much. I implemented the same logic for my own project. But I ran into one issue; I changed the code directly in ‘Authenticates User’ trait. Then I deployed my code into Heroku for testing purpose and it was broken. Heroku installed the vendor files, so my changes were gone. Then I have overridden those two methods inside the ‘Login controller’ and it worked like before.