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!
The Laravel portal for problem solving, knowledge sharing and community building.
The community