Loyd
1 week ago
110
7
Laravel

How to crawl slugs using spatie sitemap

Posted 1 week ago by Loyd

Am using spatie sitemap to generate sitemap links using a command

public function handle()
    {
        // modify this to your own needs
        SitemapGenerator::create(config('app.url'))
            ->writeToFile(public_path('sitemap.xml'));
    }

This only generate links without slugs like home about and contact page

Please sign in or create an account to participate in this conversation.