mirror of
https://gitee.com/hyperf/hyperf.git
synced 2024-11-30 02:37:58 +08:00
fixed #268
This commit is contained in:
parent
636fb642b2
commit
fe7b09a2c1
@ -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()) {
|
||||
// ...
|
||||
}
|
||||
```
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user