Support the ongoing development of Laravel.io →
Authentication
Last updated 10 months ago.
0

I was doing it like this:

$field = filter_var(Input::get('elementname'), FILTER_VALIDATE_EMAIL) ? 'email' : 'username';
if (Auth::attempt(array($field => Input::get('elementname'), 'password' => Input::get('login_password')),$remember))
Last updated 10 months ago.
0

Sign in to participate in this thread!

Full Stack Europe

Your banner here too?

iamkdev iamkdev Joined 27 Aug 2014

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 Laravel.io - All rights reserved.