0
votes

QueryException in Connection.php line 769: SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hmsdb.customers' doesn't exist (SQL: insert into customers (lastName, firstName, middleName, address, telephone, mobile, notes, updated_at, created_at) values (Arce, Johanna, , ds, N/A, ds, ew, 2016-12-05 09:20:18, 2016-12-05 09:20:18))

SQLSTATE[42S02]: Base table or view not found: 1146 Table 'hmsdb.customers' doesn't exist

The name of the column should be customer and i don't where how to change hmsdb.customers to hmsdb.customer

3
in your model protected $table='customer';Sanzeeb Aryal

3 Answers

3
votes

In your customer model change to it like protected $table = 'customer'; Hope it will help you :)

0
votes

check your table name. its showing error as table not found there is spelling mistake

0
votes

If you have located the migration of the table in a specific folder, you must indicate the path and then add the command --seed to execute the filling of your table.

example: php artisan migrate --path=database/migrations/your_migration.php --seed