<div class="col-sm-5">
@foreach($student->sex() as $ind=>$value)
<label class="radio-inline">
<input type="radio" name="Student[sex]" value={{$ind}}
@if(old('Student')['sex']==$ind)
checked
@endif
>{{$value}}
</label>
@endforeach
</div>
@foreach($student->sex() as $ind=>$value)
<label class="radio-inline">
<input type="radio" name="Student[sex]" value={{$ind}}
@if(old('Student')['sex']==$ind)
checked
@endif
>{{$value}}
</label>
@endforeach
</div>
2018-04-12
->>>>>redio取舊值,補充
<div class="col-sm-5">
<label class="radio-inline">
<input type="radio" name="Student[sex]" value="10"
@if(old('Student')['sex'] == 10)
checked
@endif
> 未知
</label>
......
......
</div>
<div class="col-sm-5">
<label class="radio-inline">
<input type="radio" name="Student[sex]" value="10"
@if(old('Student')['sex'] == 10)
checked
@endif
> 未知
</label>
......
......
</div>
2018-04-12
Sorry, the page you are looking for could not be found.
2018-04-09
FatalErrorException in Container.php line 1074:
Maximum function nesting level of '100' reached, aborting!
Maximum function nesting level of '100' reached, aborting!
2018-04-09
報這個
TokenMismatchException in VerifyCsrfToken.php line 67:
TokenMismatchException in VerifyCsrfToken.php line 67:
2018-04-09
關于with傳參問題,我發現那個函數名必須是response,如果不是,就沒法傳過去。還有就是,我沒有將response路由放到session路由群組中,是可以傳參的。這是我的博客,里邊有說明https://blog.csdn.net/self_realian
2018-04-08
將老師講的表單驗證篇全部寫完了,想要看效果的可以看下面的git.&& Welcome you to star!
https://github.com/encountergong/easy-study-Laravel-form
https://github.com/encountergong/easy-study-Laravel-form
2018-04-06
最新回答 / 陳柴
<...圖片...>你說的是echo的結果是url而不是這個路徑?如果是只輸出url而不是路徑你確定的輸出的沒錯嗎?我的代碼如下
//獲取當前的路徑 echo?$request-&???url();你的方法有沒有寫對,我的...
2018-04-01