Add items to laravel's moltin cart
<p>I am trying to integrate laravels moltin cart but anytime I add a new item it replaces the previous item in the cart. Hence i'm not able to add more than one item to the cart.</p>

<p>Below is the route that handles the add to cart request and the associated controller.</p>

<p>Route:</p>

<pre class="lang-php prettyprint-override"><code>Route::get('/cartadd/{pid}', 'CartController@add_to_cart');
</code></pre>

<p>Controller:</p>

<pre class="lang-php prettyprint-override"><code>public function add_to_cart($pid)
{
    $product = Product::find($pid);

    Cart::insert(array(
        'id'       =&gt; $pid,
        'name'     =&gt; $product-&gt;name,
        'price'    =&gt; $product-&gt;price,
        'quantity' =&gt; 1,
        'tax'      =&gt; 0,
        'seller'   =&gt; $product-&gt;business_id
    ));

    $cart = Cart::contents();

    return view('site.cart', array(
        'cart'        =&gt; $cart,
        'page_title'  =&gt; 'Your shopping cart',
        'description' =&gt; '',
        'page'        =&gt; 'home'
    ));
}
</code></pre>