protected function getClassMiddlewareForPath(ResourcePath $path)
{
return Collection::make($this->classMiddleware)->filter(function ($m) use($path) {
return $this->middlewareAppliesToMethod($path->method, $m);
})->map(function ($m) {
return $m['name'];
});
}