This commit is contained in:
黄朝晖 2019-07-25 18:44:47 +08:00 committed by GitHub
parent 636fb642b2
commit fe7b09a2c1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -179,8 +179,8 @@ $name = $request->query();
$name = $request->input('user.name');
// 存在则返回,不存在则返回默认值 Hyperf
$name = $request->input('user.name', 'Hyperf');
// 不传递参数则以数组形式返回所有 Json 数据
$name = $request->input();
// 以数组形式返回所有 Json 数据
$name = $request->all();
```
### 确定是否存在输入值
@ -272,4 +272,4 @@ $file->moveTo('/foo/bar.jpg');
if ($file->isMoved()) {
// ...
}
```
```