sqlstate[42s02]: base table or view not found: 1146 table laravel code example
Example 1: laravel base table or view not found hasmany
class Cotizacion extends Model{
public $table = "your table name";
Example 2: 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.
Example 3: Base table or view not found: 1146 Table
class Cotizacion extends Model{
public $table = "cotizacion";