I find it difficult to work with the Laravel 4 Auth :: try method, follow the correct documentation, read a couple of SO threads, but still I can not get it to work.
$userData = array('email' => ' admin@admin.com ','password' => 'admin'); if(Auth::attempt($userData)){
And he returns Invalid everytime
Now I'm not sure what the reason is.
In my config / auth.php I have the following
<?php return array( 'driver' => 'eloquent', 'model' => 'User', 'table' => 'users', 'reminder' => array( 'email' => 'emails.auth.reminder', 'table' => 'password_reminders', ), ); ?>
Aman virk
source share