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

When I ran "php artisan db:seed", It showed #11

Open
timloo0710 opened this issue Jun 11, 2017 · 1 comment
Open

When I ran "php artisan db:seed", It showed #11

timloo0710 opened this issue Jun 11, 2017 · 1 comment

Comments

@timloo0710
Copy link

[Illuminate\Database\QueryException]
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update
a child row: a foreign key constraint fails (leantony.reviews, CONSTRAI
NT user_can_make_many_reviews FOREIGN KEY (user_id) REFERENCES users
(id) ON DELETE CASCADE ON UPDATE CASCADE) (SQL: insert into reviews (p roduct_id, user_id, comment, stars, updated_at, created_at) valu
es (92, 172, Accusamus earum facere ratione odit qui laudantium. Nisi aut q
uod quo. Et culpa quaerat aut et optio nemo. Doloremque sunt cum animi nisi
voluptatem. Excepturi sit odit ut temporibus iste qui., 5, 2017-06-11 03:4
9:04, 2017-06-11 03:49:04))

[PDOException]
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update
a child row: a foreign key constraint fails (leantony.reviews, CONSTRAI
NT user_can_make_many_reviews FOREIGN KEY (user_id) REFERENCES users
(id) ON DELETE CASCADE ON UPDATE CASCADE)

@ZaheerAbbasAghani
Copy link

same here

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