1//do this in your middleware
2public function handle($request, Closure $next)
3{
4 dd($request->route()->parameters());
5 return $next($request);
6}
7
8//or you can try this
9
10public function handle($request, Closure $next)
11{
12 dd($request->route('parameter_name'));
13 return $next($request);
14}