Two problems with using the Form class in laravel. Finding it hard to get used to the parameter passing with arrays I am using twitter bootstrap:
- Adding a class to a select type does not work?
- Using radio buttons to output properly
1
{{ Form::select('title', array('Mr', 'Mrs', 'Ms', 'Miss', 'Master', 'Dr', 'Prof'), array('class' => 'input-small')) }}
2
<div class="control-group">
<div class="controls">
{{ Form::label('gender', 'Gender', array('class' => 'control-label')) }}
<label class="radio">
{{ Form::radio('gender', 'Male') }} Male
</label>
<label class="radio">
{{ Form::radio('gender', 'Female') }} Female
</label>
<p class="help-block"> Please enter your gender</p>
</div>
</div>
1) You are passing the wrong values
You must pass the selected value, session or
Input::old('name')2) Looks fine on my templates, I have the same code. Can you post more info?