title: Auth::attempt($credentials) always returns false
body: <p>Hi there I am new to laravel and I am trying to code functionality of my login form here are the codes:</p>
  
  <p>this is how I create new user (works well)</p>
  
  <pre><code>public function action_newuser()
  {
  
      $email = Input::get('email');
      $password = Input::get('password');
      $new_user = Input::get('new_user', 'off');
      $first_name= Input::get('firstname');
      $last_name= Input::get('last_name');
      $username= Input::get('username');
  
      $user = new User();
      $user-&gt;email = $email;
      $user-&gt;password = Hash::make($password);
      $user-&gt;first_name =$first_name;
      $user-&gt;last_name= $last_name;
      $user-&gt;username= $username;
      try{
  
          $user-&gt;save();
      }
      catch(Exception $e) {
          echo "Failed to create new user!";
      }
  </code></pre>
  
  <p>This is my login function:</p>
  
  <pre><code>public function action_login()
  {   
  
      $password = Input::get('password');    
      $username= Input::get('username');
      $remember= Input::get('remember', 'off');
      if($remember =='off')   $remember=FALSE;
      if($remember =='on') $remember=TRUE;
      $credentials = array(
              'username' =&gt; $username,
              'password' =&gt; $password,
              'remember' =&gt; $remember   
          );
       if( Auth::attempt($credentials)) 
          {
              return Redirect::to('dashboard/index');
          } 
          else 
          {
              #I put this line to check are the values passed from my form are correct.
              echo $password.'  ' .$username.' '. $remember;
  
          }
  
  
  }   
  </code></pre>
  
  <p>When I submit login form it always shows a blank page has values of $password, $username and $remember values. This means Auth::attempt() is not working well. </p>
  
  <p>What can be the problem?</p>