Answers for "SQLSTATE[42S02]: Base table or view not found: 1146 Table 'onetoone.product_models' doesn't exist (SQL: insert into `product_models` (`updated_at`, `created_at`) values (2021-08-04 14:46:02, 2021-08-04 14:46:02))"

PHP
0

SQLSTATE[42S02]: Base table or view not found: 1146 Tabl

It seems Laravel is trying to use category_posts table (because of many-to-many relationship). But you don't have this table, because you've created category_post table. Change name of the table to category_posts.
Posted by: Guest on December-07-2020

Code answers related to "SQLSTATE[42S02]: Base table or view not found: 1146 Table 'onetoone.product_models' doesn't exist (SQL: insert into `product_models` (`updated_at`, `created_at`) values (2021-08-04 14:46:02, 2021-08-04 14:46:02))"

Browse Popular Code Answers by Language