title: Laravel: How to set custom header while redirecting to any url
body: <p>I am using Laravel 5.0 and trying to redirect to a url with custom headers. But somehow I am not getting the header value in redirected page or we can say header value is not getting sent while redirecting.  </p>
  
  <p>I am using this code:  </p>
  
  <pre><code>return redirect('http://www.anydomain.com')
              -&gt;header('customvalue1', $customvalue1)
              -&gt;header('customvalue2', $customvalue2);
  </code></pre>
  
  <p>Please let me know if I'm doing something wrong.</p>