【发布时间】:2020-09-23 07:27:36
【问题描述】:
我有两个表Brands 和BrandTimings,我想用取货和交货时间来保存品牌,我有一个表格,我要提交所有数据我收到错误,我理解错误但我不知道'不知道如何将取货和交货时间分配给变量并删除它们,然后使用 afterSave(),用新创建的品牌 ID 将它们保存在 BrandTimings 中,我尝试过 beforeSave(),但我不明白该怎么做十月 cms 文档没有示例,
找不到列:1054 '字段列表'中的未知列'pickup_time'(SQL:插入
offline_mall_brands(name,id,pickup_time,delivery_time,slug,website,description,updated_at,created_at) 值 (ASDE, 1, ["0","1"], ["2","3"], zip-jet, , , 2020-06-04 10:19:17, 2020-06-04 10:19:17))”在 /home/vagrant/code/cml/vendor/laravel/framework/src/Illuminate/Database/Connection.php 的第 664 行
品牌
id name location
1 Inspire Lacer
品牌时间
id brand_id pickup_time delivery_time
1 1 08:00 15:00
1 1 09:00 16:00
1 1 10:00 17:00
1 1 11:00 18:00
【问题讨论】:
标签: octobercms octobercms-plugins octobercms-backend october-form-controller