title: How to set and get Cookie in laravel
body: <p>I would like to set and get value in cookie but it doesn't work:</p>
  
  <pre><code>    Cookie::queue('online_payment_id', "1", 15);
  
      $value = Cookie::get('online_payment_id');
      dd($value);
  </code></pre>
  
  <p><code>dd()</code> returns <code>null</code>;</p>
  
  <hr>
  
  <p>I used below way but I got this message:</p>
  
  <pre><code>Method cookie does not exist.
  
      request()-&gt;cookie('online_payment_id');
  
      $value = response()-&gt;cookie('online_payment_id', "1", 15);
      dd($value);
  </code></pre>