protected function getRouteInformation(Route $route) { if ($route->getName()) { return ['uri' => $route->uri(), 'name' => $route->getName(), 'before' => $this->getBeforeFilters($route)]; } return null; }