spatie/laravel-sitemap
Generate XML sitemaps for Laravel by crawling your site or building them manually. Add extra URLs, set last-modified dates, and include models via a simple interface. Write sitemaps to disk with a fluent, developer-friendly API.
Sitemapable interface to auto-generate sitemap entries for Eloquent models (e.g., Post, Product), eliminating hardcoded URLs and keeping sitemaps synchronized with database changes./post → /post/en, /post/es) to support global audiences without manual updates./admin, /login) to focus on high-value pages and avoid overloading search engines.sitemap-index.xml with posts_sitemap.xml, pages_sitemap.xml) for scalability.lastmod, priority), and third-party integrations (e.g., analytics, CDNs).sitemap.xml file may suffice.next-sitemap (for Next.js).django-sitemap or Node.js’s sitemap.xml.spatie/crawler or build a bespoke solution.spatie/sitemap package instead.For Executives: "This package automates sitemap generation—critical for SEO and search visibility—while reducing dev ops overhead. It crawls our site intelligently, includes dynamic content (e.g., blog posts, products), and supports multilingual audiences. With scheduled updates, we ensure search engines always index the latest content, driving organic traffic without manual maintenance. The MIT license and Spatie’s track record (2.6K stars) make it a low-risk, high-impact investment."
For Engineers:
*"Leverage spatie/laravel-sitemap to:
Sitemapable).robots.txt.spatie/browsershot).For SEO/Marketing Teams: *"This tool ensures our sitemap is always up-to-date, helping search engines discover and rank our content faster. Key benefits:
For DevOps: *"Minimal infrastructure impact:
How can I help you explore Laravel packages today?