private function isRouteVisibleForDocumentation($route)
{
list($class, $method) = explode('@', $route);
$reflection = new ReflectionClass($class);
$comment = $reflection->getMethod($method)->getDocComment();
if ($comment) {
$phpdoc = new DocBlock($comment);
return collect($phpdoc->getTags())->filter(function ($tag) use($route) {
return $tag->getName() === 'hideFromAPIDocumentation';
})->isEmpty();
}
return true;
}