thinkphp 请求
请求对象由 thinkRequest 负责 只需要依赖注入即可 请求对象 构造方法注入即可 public function __construct(Request $request) { $this->request = $request; } 请求信息 <?php namespace app\index\controller; use think\exception\ValidateException; use think\facade\Request; class Index extends BaseController { /** * 显示资源列表 * * @return \think\Response */ public function index(Request $request) { return Request::url(); } /** * 显示创建资源表单页. * * @return \think\Response */ public function create() { // } /** * 保存新建的资源 * * @param \think\Req...





