/** * Get the route information for a given route. * * @param string $name * @param Route $route * @param Route $current the current route * @param string $base_path * @return array */ protected function getRouteInformation($name, Route $route, $current, $base_path) { $path = $route->getPath(); $uri = head($route->getMethods()) . ' <a href="' . $base_path . $path . '">' . $path . '</a>'; $action = $route->getAction() ?: 'Closure'; return array('current' => $current == $route, 'host' => $route->getHost(), 'uri' => $uri, 'name' => $this->getRouteName($name), 'action' => $action, 'before' => $this->getBeforeFilters($route), 'after' => $this->getAfterFilters($route)); }