5 years ago

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

Posted 5 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.