圖中,我當(dāng)然知道獲取post內(nèi)容,只能從Request對(duì)象獲取,所以 var_dump(file_get_contents('php://input'));肯定是null
大量使用了 $_GET,$_POST 原生參數(shù),和 php://input 咋辦,
$_GET $_POST 可以模擬,
$_GET = $request->get();
$_POST = $request->post();
file_get_contents('php://input')
這個(gè)沒辦法了,只能在源碼里用 request()->rawBody(); 替換了