+ foreach (['lw', 'dw', 'sp', 'uw', 'uw2'] as $map) {
+ $tech = TechniqueMap::where('map', '=', $map)->latest()->first();
+ $url = new SitemapUrl();
+ $url->path = '/map/'.$map;
+ if ($tech) {
+ $url->lastmod = $tech->created_at;
+ }
+ $url->changefreq = 'monthly';
+ $url->priority = 0.9;
+ $urls[] = $url;
+ }
+