title: Laravel, how to redirect as 301 and 302
body: <p>I cannot find info for redirecting as 301/302 in the <a href="http://laravel.com/docs/routing" rel="noreferrer">Laravel docs</a>.</p>
  
  <p>In my routes.php file I use:</p>
  
  <pre><code>Route::get('foo', function(){ 
      return Redirect::to('/bar'); 
  });
  </code></pre>
  
  <p>Is this a 301 or 302 by default? Is there a way to set it manually? Any idea why this would be omitted from the docs?</p>