Laravel 4 Auth:attempt not working
I am having hard time working with Laravel 4 Auth::attempt method , followed the right documentation, read couple of SO threads but still i am not able to get it working. $userData = array('email' => 'admin@admin.com','password' => 'admin'); if(Auth::attempt($userData)){ // redirect } else{ echo 'Invalid'; } And it returns Invalid everytime Now i am not sure what is the actual reason. In my config/auth.php i have following <?php return array( /* |-------------------------------------------------------------------------- | Default Authentication Driver |-----------------------------------------