title: Argument 2 passed to Symfony\Component\HttpFoundation\Cookie::__construct() must be of the type string or null, array given
body: <p>I have updated my laravel version from 5.5 to 5.6 and followed the update guide but there is one error that I cannot figure out. </p>
  
  <p><strong>Error</strong></p>
  
  <pre><code>Argument 2 passed to Symfony\Component\HttpFoundation\Cookie::__construct() must be of the type string or null, array given
  </code></pre>
  
  <p><strong>My code generating this error:</strong> </p>
  
  <pre><code>public function show($id, DealService $dealService, CookieJar $cookieJar)
      {
          if(null != $coupon = $dealService-&gt;getActiveDealById($id))
          {
              if(!Cookie::has('recent'))
              {
                  $ids = [];
                  array_unshift($ids, $id);
                  $cookieJar-&gt;queue('recent', $ids);
              }
              else
              {
                  $ids = Cookie::get('recent');
                  if(!in_array($id, $ids))
                  {
                      array_unshift($ids, $id);
                      $ids[] = $id;
                      $cookieJar-&gt;queue('recent', $ids);
                  }
              }
              if(!empty($ids))
              {
                  $recent_deals = $dealService-&gt;getDealsByIds($ids);
              }
              $related_deals = $dealService-&gt;getRelatedActiveDeals($id);
  
              return view('couponia.show', ['coupon' =&gt; $coupon, 'recent_deals' =&gt; $recent_deals, 'related_deals' =&gt; $related_deals]);
          }
          else
          {
              return view('errors.404');
          }
      }
  </code></pre>
  
  <p>CookieJar queue method throws the exception as it is trying to create a Cookie instance, but this code used to work perfectly in 5.5 and the CookieJar documentation also suggests that it accepts array as argument. </p>