Answers for "SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel.mailboxes' doesn't exist"

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
0

SQLSTATE[42S02] lumen

You need to define the table name in model as shown below.
class User extends Model
{
    //
    public $table = "products";
}
Posted by: Guest on December-27-2020

Code answers related to "SQLSTATE[42S02]: Base table or view not found: 1146 Table 'laravel.mailboxes' doesn't exist"

Browse Popular Code Answers by Language