最贊回答 / yyii
解決了!? 參考這篇:https://blog.csdn.net/cnwyt/article/details/79540396在頁面上:{{csrf_field()}} 就好了
2019-05-23
最新回答 / 慕仔2739051
//?保存添加 public?function?save(Request?$request) { ????$data?=?$request-&); input('Student'); ????$student?=?new?Student(); ????$student-&$stname?=?$data['name']; ????$student-&-&gage?=?$data['age']; ????$studen...
2019-05-02
最新回答 / 西紅柿炒雞蛋77
handle()方法有兩個參數$request?--->請求信息,里面包含了輸入,URL,上傳文件等等信息。$next?--->閉包函數。將接下來需要執行的邏輯裝載到了其中。返回值:當我們在中間件中return $next($request);時,相當與把請求傳入接下來的邏輯中。同時,中間件也可以返回重定向,不運行之前的邏輯。
2019-03-30
最新回答 / 慕粉9087786
{{isset($student->sex)?&&?$student->sex?===?$ind???'checked':?''}}在性別input框里面加上這串代碼,給input 加一個checked屬性,實現數據保持
2018-12-09