修改request的获取方式这样可行吗

问题描述 在BaseController中初始化request public function __construct() { $this->request = request(); $this->response = response(); } 然后在api接口中继承BaseController并使用request属性获取请求参数这样可以吗?control...

coderGod 发表与 13天前 188 浏览 1 回答

coderGod

100
积分
0
获赞数
0
粉丝数
13天前 加入
🔝