$content .= "Sitemap: " . route('sitemap') . "\n"; $content .= "Sitemap: " . route('sitemap.index') . "\n"; return response($content) ->header('Content-Type', 'text/plain') ->header('Cache-Control', 'public, max-age=86400'); }); return response($content)->header('Content-Type', 'text/plain'); }); /* LANGUAGE SWITCH */ Route::post('language', [LocalizationController::class, 'switch'])->name('language.switch'); Route::get('language/{locale}', [LocalizationController::class, 'switch']) ->name('language.switch.short') ->where('locale', '[a-z]{2}');