Illuminate\Database\QueryException with message 'SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (blog
.comments
, CONSTRAINT comments_discussion_id_foreign
FOREIGN KEY (discussion_id
) REFERENCES discussions
(id
) ON DELETE CASCADE) (SQL: insert into comments
(body
, user_id
, discussion_id
, updated_at
, created_at
) values (Ratione adipisci numquam eos accusamus velit. Quod quod nulla velit voluptatem fuga. Ut sit veritatis aliquam quod rem autem occaecati., 138, 150, 2018-05-14 04:03:21, 2018-05-14 04:03:21))'