我正在使用laravel 5 + sql =)当我想创建一些信息时,我有这条消息 - >
SQLSTATE[23000]: Integrity constraint violation:
1452 Cannot add or update a child row: a foreign key constraint fails
(`danaparking`.`images`, CONSTRAINT `post_id_fk` FOREIGN KEY
(`posts_id`) REFERENCES `posts` (`id`) ON DELETE CASCADE ON UPDATE CASCADE)
(SQL: insert into `images` (`img_path`, `img_title`, `updated_at`, `created_at`)
values (/uploads/car.png, car, 2016-05-02 08:45:43, 2016-05-02 08:45:43))
哪里可能有问题?