request()->param(); //获取请求的参数,数据类型为数组
Request::param('a','1') //获取请求参数a,不存在使用默认值1
Request::param('username','','strip_tags'); //参数过滤 去掉html标签 htmlspecialchars转换成实体入库 strtolower小写
Request::header(); //请求头数组,支持单个 cookie
Request::session(); //获取 $_SESSION 变量
Request::cookie(); //获取 $_COOKIE 变量
Request::host(true); //域名:www.baidu.com,默认无参数包含端口:80
Cache::set('name', $value, 3600); //设置缓存1小时后过期
Cache::get('name'); //获取缓存
# 读取config/pay.php下面的配置
# config/pay.php
return [
// 商户号
'sxt_mch_id' => '10003',
];
config('pay.sxt_mch_id') //读取配置