blade error old value

http://laravel.com/

http://kejyun.github.io/Laravel-4-Docum ... roduction/
回覆文章
yehlu
Site Admin
文章: 3245
註冊時間: 2004-04-15 17:20:21
來自: CodeCharge Support Engineer

blade error old value

文章 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>
回覆文章

回到「laravel」