Closed pengdefang closed 1 year ago
数据正常显示应该是数组,而不是字符串噢,有问题可以进群交流群号:579150457
$form->select('category_type', '分类')->mode('multiple')->options(Category::selects()); 是表格,添加记录时,下拉选项如果是设置的可多选,初始化就会有一个空白的在那,提交时的值是 category_type:[null,2,5]
->mode('multiple') 改成->multiple()
好的,谢谢,我可能看文档示例代码时,看到了mode的用法,