Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please help with database errors #341

Open
maiskiykot opened this issue Jun 29, 2022 · 1 comment
Open

Please help with database errors #341

maiskiykot opened this issue Jun 29, 2022 · 1 comment

Comments

@maiskiykot
Copy link

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?

@masrodjie
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants