我是Laravel的新手,在将多个选择插入数据库的多个列时遇到了一些问题。
在这里,我将选择选择器用于多个选择
<select multiple="multiple" name=language[] id="language[]" class="selectpicker" data-selected-text-format="count">
<option name="En">English</option>
<option name="It">Italian</option>
<option name="Ar">Arabic</option>
<option name="Jp">Japanese</option>
</select>
语言表:
+----+---------+---------+--------+--------+
| id | English | Italian | Arabic |Japanese|
+----+---------+---------+--------+--------+
| 1 | | | | |
| 2 | | | | |
| 3 | | | | |
+----+---------+---------+--------+--------+
如何将数据插入控制器中的每一列?
这就是我想要做的!
+----+---------+---------+--------+--------+
| id | English | Italian | Arabic |Japanese|
+----+---------+---------+--------+--------+
| 1 | En | | Ar | Jp |
| 2 | | It | | |
| 3 | En | | | Jp |
+----+---------+---------+--------+--------+
慕森卡
摇曳的蔷薇