SQLSTATE[42S02]:未找到基表或视图:Laravel

Loi*_*rce 0 html php mysql laravel

Connection.php 第 769 行中的 QueryException:SQLSTATE[42S02]:未找到基表或视图:1146 表 'hmsdb.customers' 不存在(SQL:插入 ( customers, lastName, firstName, middleName, address, telephone, mobile, notes, updated_at)created_at值 (Arce,约翰娜, , ds, N/A, ds, ew, 2016-12-05 09:20:18, 2016-12-05 09:20:18))

SQLSTATE[42S02]:未找到基表或视图:1146 表“hmsdb.customers”不存在

列的名称应该是 customer,我不知道如何将 hmsdb.customers 更改为 hmsdb.customer

小智 5

在您的客户模型中对其进行更改,protected $table = 'customer'; 希望它能帮助您:)