Posted: 08-06-2017

Laravel Auth: Login With Email Or Username (In One Field)

Povilas Korop form shares this article about  Laravel Auth with Username

Quick tip for you guys. What if in your project users can login not only with email but also with some other field, like “username” or “user_id” or whatever? By default Laravel allows only one field like ’email’. That’s actually easy to change.