title: when i try to add product in cart the error will show. product will added into cart but cart not shown. Trying to get property 'image' of non-object
body: <p>the product will be added into the cart but cart due to image error the card will not be shown.</p>
  <p>Here is my cart.blade.php file.</p>
  <pre><code>@foreach(Cart::instance('cart')-&gt;content() as $item)
  
              &lt;li class=&quot;pr-cart-item&quot;&gt;
                  &lt;div class=&quot;product-image&quot;&gt;
                      &lt;figure&gt;&lt;img src=&quot;{{asset('assets/images/products')}}/{{$item-&gt;model-&gt;image}}&quot; alt=&quot;{{$item-&gt;model-&gt;name}}&quot;&gt;&lt;/figure&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;product-name&quot;&gt;
                      &lt;a class=&quot;link-to-product&quot; href=&quot;{{route('product.details',['slug'=&gt;$item-&gt;model-&gt;slug])}}&quot;&gt;{{$item-&gt;model-&gt;name}}&lt;/a&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;price-field produtc-price&quot;&gt;&lt;p class=&quot;price&quot;&gt;${{$item-&gt;model-&gt;regular_price}}&lt;/p&gt;&lt;/div&gt;
                  &lt;div class=&quot;quantity&quot;&gt;
                      &lt;div class=&quot;quantity-input&quot;&gt;
                          &lt;input type=&quot;text&quot; name=&quot;product-quatity&quot; value=&quot;{{$item-&gt;qty}}&quot; data-max=&quot;120&quot; pattern=&quot;[0-9]*&quot; &gt;                                  
                          
                          &lt;a class=&quot;btn btn-increase&quot; href=&quot;#&quot; wire:click.prevent=&quot;increaseQuantity('{{$item-&gt;rowId}}')&quot;&gt;&lt;/a&gt;
                          &lt;a class=&quot;btn btn-reduce&quot; href=&quot;#&quot; wire:click.prevent=&quot;decreaseQuantity('{{$item-&gt;rowId}}')&quot;&gt;&lt;/a&gt;
                      &lt;/div&gt;
  
                      &lt;p class=&quot;text-center&quot;&gt; &lt;a href=&quot;#&quot; wire:click.prevent=&quot;switchToSaveForLater('{{$item-&gt;rowId}}')&quot;&gt;Save For Later&lt;/a&gt;&lt;/p&gt;
                  &lt;/div&gt;
                  &lt;div class=&quot;price-field sub-total&quot;&gt;&lt;p class=&quot;price&quot;&gt;${{$item-&gt;subtotal}}&lt;/p&gt;&lt;/div&gt;
                  &lt;div class=&quot;delete&quot;&gt;
                      &lt;a href=&quot;#&quot; wire:click.prevent=&quot;destroy('{{$item-&gt;rowId}}')&quot; class=&quot;btn btn-delete&quot; title=&quot;&quot;&gt;
                          &lt;span&gt;Delete from your cart&lt;/span&gt;
                          &lt;i class=&quot;fa fa-times-circle&quot; aria-hidden=&quot;true&quot;&gt;&lt;/i&gt;
                      &lt;/a&gt;
                  &lt;/div&gt;
              &lt;/li&gt;
              
              @endforeach
  </code></pre>