title: Why the Auth::attempt method always returns false?
body: <p>I'm trying to do a basic authentication and when I try to authenticate the user,but <code>Auth :: attempt</code> method returns false </p>
  
  <p><strong>Blade</strong></p>
  
  <pre><code>   {{ Form::open(array('url' =&gt; 'usuario')) }}
  
                  &lt;input type="text" class="text"  id="email" name="email" placeholder="Correo" {{(Input::old('email')) ? 'value ="'. Input::old('email').'"' : '' }}&gt;
                  &lt;p&gt;{{ $errors-&gt;first('email') }}&lt;/p&gt;
                  &lt;input type="text" class="text"  id="password" name="password" placeholder="Contraseña" &gt;
                  &lt;p&gt;{{ $errors-&gt;first('password') }}&lt;/p&gt;
  
  
              {{ Form::submit('Ingresar', array('class' =&gt; 'bg1')) }}
  {{ Form::close() }}
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>class UsuarioController extends BaseController{
  public function doLogin(){
  $rules = array(
                  'email' =&gt; 'required|email',
                  'password' =&gt; 'required'
                  );
  $validator = Validator::make(Input::all(), $rules);
  if($validator-&gt;fails()){
      return Redirect::to('usuario')-&gt;withErrors($validator)-&gt;withInput(Input::except('password'));
  }else{
  
      $userdata = array(
          'email' =&gt; Input::get('email'),
          'password' =&gt; Input::get('password')
          );
  
      if(Auth::attempt($userdata)){
          return View::make('hello');
      }else{
          return Redirect::to('usuario');
      }
  
  }
  }
  }
  </code></pre>
  
  <p><strong>Auth</strong></p>
  
  <pre><code>'driver' =&gt; 'database',
  'model' =&gt; 'Usuario',
  'table' =&gt; 'Usuario',
  </code></pre>
  
  <p><strong>Model</strong></p>
  
  <pre><code>use Illuminate\Auth\UserInterface;
  use Illuminate\Auth\Reminders\RemindableInterface;
  class Usuario extends Eloquent implements UserInterface, RemindableInterface{
  protected $table = 'Usuario';
  protected $primaryKey = 'idUsuario';
  protected $hidden = array('Contrasena');
  protected $fillable = array(
                      'Nombre',
                      'Apellido',
                      'Tipo',
                      'password',
                      'email',
                      'Fono',
                      'Foto'
                      );
  }
  </code></pre>
  
  <p>The code always returns false and redirects me to login, use incorrect data when the database</p>