/** * Get the data for the template. * * @return array */ protected function getTemplateData() { $namespace = $this->getOptionOrConfig('namespace'); $routes = $this->routes->toJSON(); $absolute = $this->config->get('laroute.absolute', false); $rootUrl = $this->config->get('app.url', ''); return compact('namespace', 'routes', 'absolute', 'rootUrl'); }
/** * Get the data for the template. * * @return array */ protected function getTemplateData() { $namespace = $this->getOptionOrConfig('namespace'); $routes = $this->option('empty') ? json_encode([]) : $this->routes->toJSON(); $absolute = $this->option('empty') ? false : $this->config->get('laroute.absolute', false); $rootUrl = $this->option('empty') ? '' : $this->config->get('app.url', ''); $prefix = $this->option('empty') ? '' : $this->config->get('laroute.prefix', ''); return compact('namespace', 'routes', 'absolute', 'rootUrl', 'prefix'); }