laravelshoppingcart icon indicating copy to clipboard operation
laravelshoppingcart copied to clipboard

Please help with database errors

Open maiskiykot opened this issue 2 years ago • 1 comments

I tried use database way for saving my carts but laravelshoppingcart start write incorrect info to database. See code example:

SQLSTATE[HY000]: General error: 1364 Field 'ip' doesn't have a default value (SQL: insert into cart_storage (id, cart_data, updated_at, created_at) values (4yTlTDKu3oJOfzD_cart_items, O:32:"Darryldecode\Cart\CartCollection":1:{s:8:""

Please help correct it. I not change base code of package. What is it?

maiskiykot avatar Jun 29 '22 18:06 maiskiykot

You've added ip column into cart_storage. Change it to allow null value

masrodjie avatar Jul 04 '22 04:07 masrodjie