I've tried to use session forget of laravel but unfortunately I cant manage to run it also I'm trying to use UNSET() still not working, attached below is Controller for receiving a new product via saving is using array and validating whenever that product is already saved it will no be saved anymore.

```
$product_details = array('product_id'  => $request->get('product_id'), 
                         'product_qty' => $request->get('product_qty'));

$products = $request->session()->get('product');

if ($request->session()->has('product')) {

    foreach ($products as $key => $value) 
    {
        if($value['product_id']==$request->get('product_id'))
        {
            $request->session()->forget('product',$request->get('product_id'));
        }
    }

    session()->push('product', $product_details);
}
else
{
    session()->push('product', $product_details);
}

return true;

```