title: send redirect and setting cookie, using laravel 5
body: <p>I have written this code, that sets a cookie in client's browser, and after that must redirect the client to 'home' route, </p>
  
  <pre><code>$response = new Response();
  $response-&gt;withCookie(cookie()-&gt;forever('language', $language));
  $response-&gt;header('Location' , url('/home')) ;
  return $response ;
  </code></pre>
  
  <p>the client receives these headers but  the client doesn't make request for the "home" route
  <img src="https://i.stack.imgur.com/oLS7k.png" alt="enter image description here"></p>
  
  <p>how should I do both, setting the cookie and redirect the user?</p>