/** * Display a listing of the resource. * * @return \Illuminate\Http\Response */ public function indexSingle() { Sitemap::addTag('http://' . env('WEB'), date('c', time()), 'monthly', '1'); return Sitemap::render(); }
public function index() { Sitemap::addTag(route('site.home'), null, 'monthly', '1.0'); Sitemap::addTag(route('site.team'), null, 'monthly', '1.0'); return Sitemap::render(); }
public static function sitemapPages() { $pages = Model_Main::getSitemapPages(); if (!empty($pages) && is_array($pages)) { foreach ($pages as $key => $page) { Sitemap::addTag(url('/' . $page['slug']), $page['updated_at']); } } // Return the sitemap to the client. return Sitemap::render(); }