DEV Community

Discussion on: How to Create a Sitemap in Laravel for a Website that Contains Thousands of Records.

Collapse
 
manzadey profile image
Andrey Manzadey

Good idea, but there is a better option to avoid loading the database.

Use the \DomDocument class to generate a sitemap.xml and thus make the sitemap.xml static. And use the laravel scheduler.

Collapse
 
cwraytech profile image
Christopher Wray

Love it. Still be using a controller?