// this is what im getting every time
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
</urlset>
After the that change the file now need almost 2 minutes for be created and its still empty?
// this is the content of the file after its being created
<?xml version="1.0" encoding="UTF-8"?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9" xmlns:xhtml="http://www.w3.org/1999/xhtml">
</urlset>
@snapey to answer you questions,
1- no i'm not using a command the file creation is directly on the web.php file
2- i'm running the app on localhost, but the files is being created every time
3- i'm using laravel 5.8
4- yes all my routes are in web.php
I haven't used that package, but from the docs, it says it generates the links by actually crawling your site. Perhaps it's needing an external url accessible from the public net, and not a local 127.0.0.1 loopback? Not sure.
@cronix I believe it's crawling it locally as well if you point it to localhost!
@nhySo to comeback to my previous reply. Have you tried manually adding the route to the sitemap generator to check if it can generate at least one route in the xml?