moltin / laravel-cart

Laravel Facade and Service Provider for Moltin\Cart
276 stars 87 forks source link

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

Open phuclh opened 9 years ago

phuclh commented 9 years ago

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.

judgej commented 8 years ago

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.