'size_table_id' => request()->get('size_table')['size_table_id']
]);
SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`vue_shoppingcart`.`product_size_tables`, CONSTRAINT `product_size_tables_size_table_id_foreign` FOREIGN KEY (`size_table_id`) REFERENCES `size_tables` (`id`) ON DELETE CASCADE) (SQL: insert into `product_size_tables` (`size_table_id`, `product_id`) values (1, 35))
внешние ключи смотрите
Обсуждают сегодня