How can I make my select element a required select element?
What I want in HTML :
What I have at the moment in blade:
{!! Form::select('someid', [null => 'Please Select'] + $somelist, ['required']) !!}
Thanks
How can I make my select element a required select element?
What I want in HTML :
What I have at the moment in blade:
{!! Form::select('someid', [null => 'Please Select'] + $somelist, ['required']) !!}
Thanks
You want the 4th argument to select - 'options'
public function select($name, $list = [], $selected = null, $options = [])
{!! Form::select('someid', [null => 'Please Select'] + $somelist, null, ['required']) !!}