Connection.php 行 769 中的 QueryException:SQLSTATE[42S02]:未找到基表或视图:1146 表 ‘hmsdb.customers’ 不存在(SQL:插入 customers
( lastName
, firstName
, middleName
, address
, telephone
, mobile
, notes
, updated_at
, created_at
) 值 (Arce, Johanna, , ds, N/A, ds, ew, 2016-12-05 09:20:18, 2016-12-18 :20:18))
SQLSTATE[42S02]: 未找到基表或视图:1146 表 ‘hmsdb.customers’ 不存在
列的名称应该是客户,我不知道如何将 hmsdb.customers 更改为 hmsdb.customer
原文由 Lois Arce 发布,翻译遵循 CC BY-SA 4.0 许可协议
在您的客户模型中更改为
protected $table = 'customer';
希望它能帮助您 :)