laravel-cart icon indicating copy to clipboard operation
laravel-cart copied to clipboard

Non-static method Moltin\Cart\Cart::insert() should not be called statically

Open phuclh opened this issue 10 years ago • 1 comments

I can not call static method like your documents.

I got this message: Non-static method Moltin\Cart\Cart::insert() should not be called statically, assuming $this from incompatible context

Thank you :D.

phuclh avatar Jan 26 '15 10:01 phuclh

The methods in the cart cannot be called statically. The Laravel façade looks like they are static, but the service provider actually sets up a singleton in the laravel container.

judgej avatar Jul 02 '16 11:07 judgej