형식::선택 laravel
echo Form::selectMonth('month');
에서 데이터를 검색하는 방법을 사용하여 데이터베이스에서 옵션을 선택 laravel
<select class="form-control" name="product_id">
<option>Select Product</option>
@foreach ($products as $key => $value)
<option value="{{ $key }}" {{ ( $key == $selectedID) ? 'selected' : '' }}>
{{ $value }}
</option>
@endforeach
</select>