DEV Community

Zeenathul nizreen
Zeenathul nizreen

Posted on

Why I am getting this error in laravel?Error:-Too few arguments to function Darryldecode\Cart\Cart::updateQuantityRelative()

I am getting this error:

ArgumentCountError Too few arguments to function Darryldecode\Cart\Cart::updateQuantityRelative(), 1 passed in ..\vendor\laravel\framework\src\Illuminate\Support\Facades\Facade.php on line 261 and exactly 3 expected (View: ...\resources\views\cart.blade.php)

cart.blade.php

@foreach(\Cart::session(auth()->id())->getContent() as $items)
   <tr&gt
     <td class="text-center">
       <a href="{{ route('cart.destroy', $items->id)}}">x</a>
       </td>
        <td data-title="Product">
          <a href="#" class="text-gray-90">{{ $items ['name'] }}</a>
        </td>
       <td data-title="Price">
          <span class="">LKR

Top comments (0)