vursion/laravel-sitemappable
A Laravel package that makes Eloquent models sitemappable, letting you generate XML sitemaps directly from your models with configurable URLs, last-modified dates, priorities, and change frequencies for better search engine indexing.
<lastmod>): 1.12.0 makes sitemap entries carry the source model's created_at/updated_at, so the generated XML reflects real content change dates instead of generation-time or null values. This directly supports crawl-efficiency and re-indexing decisions for content-heavy properties.lastmod mapping against the package's entry model).updated_at), multi-locale content sets requiring sitemap indexes, and programmatic SEO pages where lastmod accuracy affects crawl budget allocation across thousands of URLs.Adopt when:
lastmod fidelity matters — i.e. content is edited post-publish and you want change signals rather than uniform timestamps.Look elsewhere when:
lastmod values.updated_at bumps on incidental writes (view counters, soft-delete touches, sync jobs) will emit false lastmod values, which erodes trust in the signal. Fix the write paths first, or scope lastmod to a dedicated content_updated_at column.To executives: Low-cost, low-risk SEO hygiene. Sitemap freshness signals help search engines prioritise re-crawling pages that actually changed, which supports faster indexing of new and updated content — a lever on organic acquisition and time-to-index for launches. No new infrastructure, no vendor contract; the cost is a small amount of engineering review time.
To engineering: Minor version (1.12.0), additive — timestamps from the underlying model are now persisted onto sitemap entries rather than being absent or derived at generation time. Adoption is configuration plus a model/entry mapping, not a rewrite. Key review points: confirm updated_at semantics match "content changed" for each mapped model, and confirm the scheduled generation job's cadence is appropriate relative to publish frequency. Watch for models where updated_at is touched by non-content writes.
To SEO/content stakeholders: This makes the sitemap's lastmod values truthful by default. It does not change which URLs are included — coverage and prioritisation remain separate decisions — and it will not compensate for inaccurate timestamps upstream. Worth a post-release check comparing emitted lastmod values against actual edit history on a sample of high-value URLs.
How can I help you explore Laravel packages today?