I have a option tag to name 'status'.
blade
<div class="form-group">
<label class="col-md-3" for="status">Status</label>
<div class="col-md-9">
<div class="radio">
<label>
<input type="radio" name="status" id="active" value="active"> Active
</label>
<label>
<input type="radio" name="status" id="deactive" value="deactive"> Deactive
</label>
</div>
</div>
</div>
Model
protected $fillable = ['name', 'status']
Controller
public function store(Request $request)
{
SchoolsList::create($request->all());
return redirect(route('submit-information.index'));
}
When I click on submit I see this error.
SQLSTATE[HY000]: General error: 1364 Field 'status' doesn't have a default value
How to when select option value save and add to my database.