I have forms that will store some data in DB, but next time when I open that page I want autoselected values selected already
{!! Form::select('week_starts', [
'Monday' => 'Monday',
'Tuesday' => 'Tuesday',
'Wednesday' => 'Wednesday',
'Thursday' => 'Thursday',
'Friday' => 'Friday',
'Saturday' => 'Saturday',
'Sunday' => 'Sunday'
]) !!}
so I need form that will check from DB (that's not problem) and if found in database example Monday and Tuesday these fields will be autoselected with param selected=true
any idea how to do that.
I tried to <?php if... ?>
but its not working inside {!! ... !!}