Answers for "base table or view not found laravel"

PHP
3

laravel base table or view not found hasmany

// Laravel can't determine the plural form of the word you used for your table name.

// Just specify your table in the model as such:

class Cotizacion extends Model{
    public $table = "your table name";
Posted by: Guest on January-19-2021
-1

Base table or view not found: 1146 Table

class Cotizacion extends Model{
    public $table = "cotizacion";
Posted by: Guest on December-16-2020
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 "base table or view not found laravel"

Browse Popular Code Answers by Language