在輸入request1(Request,$request)中的Request時,在PHPstorm中都沒有提示選哪個類,老師能否提示一下需要在controller 使用use xxx才能手動選擇?畢竟PHPstorm的設(shè)置跟老師的不同。
2016-11-25
<input type="radio" name="Student[sex]" {{isset($student->sex)?$student->sex:old('Student')['sex'] == $ind?"checked":""}} value="{{$ind}}"> {{$val}}
2016-11-24
<input type="radio" name="Student[sex]" {{old('Student')['sex']?old('Student')['sex']:$student->sex == $ind?"checked":""}} value="{{$ind}}"> {{$val}}
2016-11-24
flash 訪問的使用 只有在echo Session::get('flash-key'); 的情況下,第二次訪問才會失效。
如果是
$res = Session::get('flash-key');
dd($res);
打印方法的話是不會失效的。。。。。
估計底層用的是 __toString()魔術(shù)方法實(shí)現(xiàn)的數(shù)據(jù)返回和銷毀。。
如果是
$res = Session::get('flash-key');
dd($res);
打印方法的話是不會失效的。。。。。
估計底層用的是 __toString()魔術(shù)方法實(shí)現(xiàn)的數(shù)據(jù)返回和銷毀。。
2016-11-19
date_default_timezone_set("PRC");//設(shè)置默認(rèn)時區(qū)
2016-11-18
歡迎star,下載 https://github.com/happyHou/laravel_form
2016-11-17
歡迎star,下載 https://github.com/happyHou/laravel_form
2016-11-17