title: Laravel - Authentication redirect to page with a 302 found code
body: <p>I'm doing the authentication and the page after login redirect the specific page but with a 302 found code. And stay at login page.
  Why this happens? </p>
  
  <p>```</p>
  
  <pre><code>if ($validator-&gt;passes()){
      $auth = DB::table('us')-&gt;where('username', '=', Input::get('username'))
        -&gt;where('password', '=', Input::get('password'))-&gt;get()-&gt;first();
      // Try to log the user in.
      if ($auth){
          // Redirect to homepage
          //Auth::login($auth);
          Auth::attempt(['username' =&gt; $username, 'password' =&gt; $password], $remember);
          return Redirect::to('app/dashboard');
      }
    }
    else{
      return Redirect::to('login')-&gt;withErrors($validator);
    }
  </code></pre>
  
  <p>```</p>
  
  <p>Thanks</p>