title: user login laravel 4
body: <p>can't manage to login anybody an idea? i still get redirected back to the login page</p>
  
  <pre><code>Route::post('login', function() {
     // get POST data
      $email = Input::get('username');
      $password = Input::get('password');
      if ( Auth::attempt(array('email' =&gt; $email,'password' =&gt; $password) ))
      {
  
          return Redirect::to('home');
      }
      else
      {
          // auth failure! lets go back to the login
          return Redirect::to('login')
              -&gt;with('login_errors', true);
  
      }
  
  });
  </code></pre>