1 頁 (共 1 頁)

blade error old value

發表於 : 2016-12-25 16:54:39
yehlu
text

代碼: 選擇全部

<input id="date_start" name="date_start" class="form-control id" value="{{ old('date_start',$tomorrow) }}">
options

代碼: 選擇全部

<select id="course_master_id" name="course_master_id" class=" form-control name">
    <option value="" selected>请选择</option>
    @foreach($coursemasters as $coursemaster)
    <option value="{{$coursemaster->id}}" {{ (old("course_master_id") == $coursemaster->id ? "selected":"") }}>{{$coursemaster->course_master}}</option>
    @endforeach
</select>