title: How to add query string to Laravel view
body: <p>I'm using Laravel 5.7 and would like to return a view, with query strings. E.g. below is what I'm doing right now.</p>
  
  <pre><code>return view('cart', compact('somevar'))
  </code></pre>
  
  <p>This takes the user to <code>mydomain.com/cart</code></p>
  
  <p>I'd like to add query strings, e.g. so the user goes to <code>mydomain.com/cart?id=123</code></p>
  
  <p>How would I do this?</p>