<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