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模式?