title: Passing cookies from browser to Guzzle 6 client
body: <p>I have a PHP webapp that makes requests to another PHP API. I use Guzzle to make the http requests, passing the <code>$_COOKIES</code> array to <code>$options['cookies']</code>. I do this because the API uses the same Laravel session as the frontend application. I recently upgraded to Guzzle 6 and I can no longer pass <code>$_COOKIES</code> to the <code>$options['cookies']</code> (I get an error about needing to assign a <code>CookieJar</code>). My question is, how can I hand off whatever cookies I have present in the browser to my Guzzle 6 client instance so that they are included in the request to my API?</p>