📜  laravel 创建新请求 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:46.701000             🧑  作者: Mango

代码示例1
$myRequest = new \Illuminate\Http\Request();
$myRequest->setMethod('POST'); //default METHOD
$myRequest->request->add(['foo' => 'bar']);
dd($request->foo);