<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>
答案 0 :(得分:2)
发现解决方案需要使用
YourModel:: forceCreate($request->all());