Skip to content

Commit 135783c

Browse files
AllanKoderCopilot
andauthored
Update app/Console/Commands/GenerateSitemap.php
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 78e930f commit 135783c

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

app/Console/Commands/GenerateSitemap.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ class GenerateSitemap extends Command
1515

1616
public function handle()
1717
{
18-
$sitemap = Sitemap::create()
19-
->add(Url::create('/')) // homepage
20-
->add(Url::create('/about')) // about page example
21-
->add(Url::create('/login'))
18+
->add(Url::create(route('home'))) // homepage
19+
->add(Url::create(route('about'))) // about page example
20+
->add(Url::create(route('login')))
21+
->add(Url::create(route('register')));
2222
->add(Url::create('/register'));
2323

2424
// Add each resource page to the sitemap with last modification date if available

0 commit comments

Comments
 (0)