您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

laravel5.1 隐式控制器内不能用request吗?

2024/3/30 11:30:19发布26次查看
隐式控制器内做如下引用,但是在用$request->path()时,报错$request变量不存在。
use illuminate\http\request;
use app\http\requests;
use app\http\controllers\controller;
requset::path()这样也不行,哪位朋友能否告知如何解决。
回复内容: 隐式控制器内做如下引用,但是在用$request->path()时,报错$request变量不存在。
use illuminate\http\request;
use app\http\requests;
use app\http\controllers\controller;
requset::path()这样也不行,哪位朋友能否告知如何解决。
直接use requset;echo requset::path();
用 request()->path();
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product