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))
Sign in to participate in this thread!
We'd like to thank these amazing companies for supporting us
The Laravel portal for problem solving, knowledge sharing and community building.