routeUrl('seo.sitemap')."\n" : "User-agent: *\nDisallow: /\n"; return response($rules, 200, ['Content-Type' => 'text/plain; charset=UTF-8']); } public function sitemap(SeoService $seo): Response { return response()->view('seo.sitemap', [ 'seo' => $seo, 'articles' => News::query()->published()->select(['id', 'updated_at'])->orderBy('id')->cursor(), ], 200, ['Content-Type' => 'application/xml; charset=UTF-8']); } }