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