public function transform(Route $route) { return ['name' => $route->getName(), 'pattern' => $route->getPattern()]; }