Hi am just learning Laravel and populating a form but not sure how to handle the select attribute, everything I try fails :(
I have something like this:
{{ Form::select('litres', array(
'blank' => '',
'90L' => '90L',
'135L' => '135L',
'175L' => '175L'),
$system[0]->litres,
array('class' => 'form-control')) }}
$system[0]->litres outputs 135L
Any ideas?
Thanks.
you have right code, just try to change $system[0]->litres
with string, and see..
thanks for the reply, I tried that already but tried again cause you never know :)
tried this:
{{ Form::select('litres', array(
'blank' => '',
'90L' => '90L',
'135L' => '135L',
'175L' => '175L'),
'135L',
array('class' => 'form-control')) }}
no luck :(
Its working now... know idea why it is working now but im over it.. its working.. im happy! thanks for the help psudocode!
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community