title: Updating previous Session Array Laravel
body: <p>I have an issue on how can I update my Previous array ?
  What currently happening to my code is its just adding new session array instead of updating the declared key here's my code:</p>
  
  <pre><code>foreach ($items_updated as $key =&gt; $added)
  {
      if ($id == $added['item_id'])
      {
          $newquantity = $added['item_quantity'] - 1;
          $update = array(
              'item_id' =&gt; $items['item_id'],
              'item_quantity' =&gt;  $newquantity,
          );
      }
  }
  
  Session::push('items', $updated);
  </code></pre>