Open OneZale1995 opened 4 years ago
在form
闭包里面dd($form->model()->toArray());
打印下数据看看,另外customFormat
也可以转化数据格式
在
form
闭包里面dd($form->model()->toArray());
打印下数据看看,另外customFormat
也可以转化数据格式
我的数据就是在form的闭包里打印的 然后使用customFormat也是一样的结果
嗯我后面优化一下hasMany
表单存json的功能吧,你先用table
表单存json
嗯我后面优化一下
hasMany
表单存json的功能吧,你先用table
表单存json
试了下,table是正常的
你这个官方文档要改一下,我就是看到这个不支持文件上传才使用hasMany的
好的,忘记改了不好意思
Description:
当我编辑时,json字段的一对多,只显示了最后一组数据
Steps To Reproduce:
如图,我的数据库里有8个数据 但是在编辑页面,只有最后一组数据 代码如下 模型层