Open CodeAntho opened 4 years ago
Non-static method Gloudemans\Shoppingcart\Cart::add() should not be called statically How to solve?
Non-static method Gloudemans\Shoppingcart\Cart::add() should not be called statically
You will need to use the facade, you are try to add method statically. Just try add this. use Cart; the another way use Gloudemans\Shoppingcart\Facades\Cart;
use Cart;
use Gloudemans\Shoppingcart\Facades\Cart;
https://laravel.com/docs/7.x/facades
Non-static method Gloudemans\Shoppingcart\Cart::add() should not be called statically
How to solve?