route()->getName();//获取当前路由 if (in_array($clientRoute, $this->noAuth)) {//不需要验证的路由 return $next($request); } return $next($request); } }