Basically, I'm having a problem with laravels built in auth my problem is it only accepts if username is spelled "username" and password "password" but I am using a different spelling username = user_name, password = passwd
this is my code
Auth::attempt(array(
'user_name' => $data['email'],
'passwd' => $data['password']
));
if( Auth::check() )
{
return Redirect::intended('/');
}
my column name is user_name, passwd
if I use the code above it does not work but if i rename my column to username and password and change my code to this below it works, but unfortunate I am not allowed to do so
Auth::attempt(array(
'user_name' => $data['email'],
'passwd' => $data['password']
));