1
815979670 Jun 8, 2019 via Android
用构造函数
|
2
strcmp Jun 8, 2019
request()
|
3
mamahaha Jun 8, 2019
请求对象为模型字段,use 模型类
|
4
yeeling Jun 9, 2019
```
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); } } ``` |