Skip to main content

๐Ÿ”Ž Site Map & SEO

SaaSykit comes with a site map out of the box. This allows you to easily add new pages to your site map and have them automatically added to your site map XML file for search engines to index.

Sitemap generation happens automatically via the command php artisan app:generate-sitemap. This command is scheduled to run every 2 hours by default, but you can change that by editing the routes/console.php file.

Sitemap considers all your blog posts along with all the pages that have been "tagged" with the middleware sitemapped in the routes/console.php file.

You can add new pages to your site map by adding the sitemapped middleware to the route you want to add to your site map. For example:

Route::get('/my-page', function () {
return view('my-page');
})->middleware('sitemapped');