laravel C层接收数据的步骤
use Illuminate\Http\Request;
function fun(Request $request){ //获取修改的数据 $arr = $request->all(); //清空令牌 unset($arr['_token']); //清空前台穿过来的id unset($arr['id']); }
use Illuminate\Http\Request;
function fun(Request $request){ //获取修改的数据 $arr = $request->all(); //清空令牌 unset($arr['_token']); //清空前台穿过来的id unset($arr['id']); }