我有两个表Brands
,BrandTimings
我想用取货和送货时间来保存品牌,我有一个表格,我要提交所有数据我收到错误,我理解错误,但我不知道如何分配取货和送货时间到一个变量并删除它们,然后使用 afterSave(),用新创建的品牌 ID 将它们保存在 BrandTimings 中,我尝试过 beforeSave(),但我不明白该怎么做,因为 10 月 cms 文档没有示例,
未找到列:1054 '字段列表'中的未知列 'pickup_time'(SQL:插入
offline_mall_brands
(name
、、、、、、、、、、、)值( ASDEid
、 1pickup_time
、[ "0"、"1"]、["delivery_time
2slug
" ,"3"], zip-jet, , , 2020-06-04 10:19:17, 2020-06-04 10:19:17))" 在 /home/vagrant/code/cml/vendor 的第 664 行/laravel/framework/src/Illuminate/Database/Connection.phpwebsite
description
updated_at
created_at
品牌
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