We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
when I use this method Cart::current() I got following error. This method work properly $cartUser = Cart::findByUser($user->id);
Integrity constraint violation: 1048 Column 'user_id' cannot be null (SQL: insert into shpc_cart (user_id, updated_at, created_at) values (, 2016-02-28 13:18:48, 2016-02-28 13:18:48))
The text was updated successfully, but these errors were encountered:
I see that you don't have an user_id in your insert. Are you trying this with a loggued in user?
Sorry, something went wrong.
I faced the same issue but I realized it was because of my wrong setup for User model :)
https://github.com/amsgames/laravel-shop#user
No branches or pull requests
when I use this method Cart::current() I got following error.
This method work properly $cartUser = Cart::findByUser($user->id);
Integrity constraint violation: 1048 Column 'user_id' cannot be null (SQL: insert into shpc_cart (user_id, updated_at, created_at) values (, 2016-02-28 13:18:48, 2016-02-28 13:18:48))
The text was updated successfully, but these errors were encountered: