|
815979670Jun 8, 2019 via Android
1
用构造函数
|
|
strcmpJun 8, 2019
2
request()
|
|
mamahahaJun 8, 2019
3
请求对象为模型字段,use 模型类
|
|
yeelingJun 9, 2019
4
```
if (! function_exists('request')) { /** * Get an instance of the current request or an input item from the request. * * @param string $key * @param mixed $default * @return \Illuminate\Http\Request|string|array */ function request($key = null, $default = null) { if (is_null($key)) { return app('request'); } return app('request')->input($key, $default); } } ``` |