DEV Community

Zeenathul nizreen
Zeenathul nizreen

Posted on

1

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)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay