0
在routes.php文件我已经定义的路线是(例如):http://localhost:8000/entities/5/queries获取URL模式在中间件的处理方法laravel
public function handle($request, Closure $next, $guard = null) {
echo $request->path(); //returns entities/5/queries
return $next($request);
}
现在我需要访问中间件中的URL模式。 即实体/ {id} /查询。 是否有任何方法返回url模式?