title: How to Store array into cookie in laravel 5.6 and get in controller without going to view page?
body: <p>I have below the array.</p>
  
  <pre><code>$data = array(
    'category'=&gt;array(
       '0'=&gt;1,
       '1'=&gt;15,
       '2'=&gt;7,
       '3'=&gt;76,
     )
  )
  </code></pre>
  
  <p>How do i store above array into cookie in laravel 5.6 ? and how to retrive all cookies value from cookie?</p>