📜  laravel base table or view not found hasmany - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:28.050000             🧑  作者: Mango

代码示例2
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.