Devon
2651
32
General

Log in with username or email in Laravel 5...

Posted 4 years ago by Devon

How would I let users log in using either their username or email from a single input field in Laravel 5?

Using a Request, the data gets validated upon method injection. In L4, I would detect if the input matched the regex of an email and then manually set it as the field to be validated. How would something like this be accomplished in L5?

Please sign in or create an account to participate in this conversation.