1
<form action="display" method="post">
<label>Details</label></br>
<input type="radio" name="vishal" value="male">vishal</br>
<input type="radio" name="vishal" value="female">male</br>
<input type="radio" name="vishal" value="other">other</br>
<input type="hidden" name="_token" value="xYj3n27EQNybQvY29mDrZxoYy3sGtbFTqfN8xeso">
<label>Details</label></br>
<input type="radio" name="rahul" value="male">rahul</br>
<input type="radio" name="rahul" value="female">male</br>
<input type="radio" name="rahul" value="other">other</br>
<input type="hidden" name="_token" value="xYj3n27EQNybQvY29mDrZxoYy3sGtbFTqfN8xeso">
<label>Details</label></br>
<input type="radio" name="demo" value="male">demo</br>
<input type="radio" name="demo" value="female">male</br>
<input type="radio" name="demo" value="other">other</br>
<input type="hidden" name="_token" value="xYj3n27EQNybQvY29mDrZxoYy3sGtbFTqfN8xeso">
<input type="submit" name="submit" value="submit">
</form>
- 我怎么能不插入每个字段填写手动?
- 我目前有以下保护$可填写= [ '性别', '维沙尔', '拉胡尔', '示范'];
- 但我的领域是多,我不能写的每个字段
- 我怎样才能在数据库没有$可填写插入手动可填写参数?
你需要指定'$ fillable'为空数组像这样。 '$保护可填写= [];' –
**它不会插入值**到数据库保护$可填写= []; – Anonymous