Questions tagged [laravel-sitemap]

Laravel sitemap is a 3rd party library for the Laravel PHP MVC framework. It can create a sitemap by crawling your site without you having to add URLs manually.

Laravel sitemap can create a sitemap by crawling your site without you having to add URLs manually. Under the hood it uses spatie/crawler which itself uses chrome and puppeteer via spatie/browsershot

Useful links:

  1. Github repository
  2. Packagist site
13 questions
9
votes
4 answers

Spatie Laravel sitemap generated xml file is empty

I am developing a Laravel application. Now, I am trying to implement the sitemap for my website using this package, https://github.com/spatie/laravel-sitemap. But when I generate sitemap.xml, no paths are included in the file. I installed the…
Wai Yan Hein
  • 13,651
  • 35
  • 180
  • 372
3
votes
1 answer

Sitemap Generator timed out, maximum execution time of 60 seconds exceeded

I need to generate a sitemap. I am using spatie/laravel-sitemap. I have installed and published it but when I run the generator Symphony throws a fatal error: Maximum execution time of 60 seconds exceeded. I have a huge list of links and left just…
Kirill
  • 105
  • 2
  • 8
2
votes
2 answers

No hint path defined for [sitemap] laravel 9

I'm using laravel-sitemap in order to create sitemap.xml file for laravel website. Here are route and controller.
Mahdi
  • 664
  • 3
  • 15
  • 35
1
vote
0 answers

Add Uri into created sitemap in laravel

This is my first time of asking any question. I've generate daily sitemap using "spatie/laravel-sitemap" package. I want to add url of the new post when admin create a new post into sitemap. I want to import uri into already created…
1
vote
1 answer

Laravel 5.6 spatie/laravel-sitemap generates the default xml line and no routes

Can anyone please help me? Hi. I have tried using Console command to generate the sitemap.xml. It always generate the default sitemap.xml file. ` urlset xmlns=" http: //www.sitemaps.org/schemas/sitemap/0.9 " ` ` xmlns:xhtml = " http:…
0
votes
1 answer

Customized Sitemap Generate

I have created sitemap using this library https://github.com/spatie/laravel-sitemap but i don't want changefreq info.how to disable.can't find in repository SitemapGenerator::create(url('/'))->writeToFile(public_path('sitemap.xml')); Result
Fredericka Hartman
  • 835
  • 1
  • 7
  • 13
0
votes
1 answer

Laravel remove duplicates urls in sitemap generator

I have this GenerateSitemap.php file where I can configure the crawler, but I don't understand how I should make the crawler remove some specific URLs for example…
0
votes
1 answer

Laravel Spatie Sitemap Package, getting Auth pages too

This is my code in Laravel : SitemapGenerator::create('https://'.request()->getHost())->writeToFile(request()->getHost().'.xml'); After generating the sitemap I am getting this type of URLs
Valadanchik
  • 33
  • 1
  • 4
0
votes
1 answer

I'm using spatie/laravel-sitemap is it possible to set another APP_URL for these url

here I'm using sitemap $sitemap = Sitemap::create()->add(Url::create('/content')); $sitemap->writeToFile(public_path($this->path)); and this is sitemap.xml http://api-core.test/content
arefeh
  • 33
  • 7
0
votes
1 answer

Laravel sitemap generator output empty file

I have installed a fresh Laravel (v 6.7) project and then installed this package spatie/laravel-sitemap. So then as in the documentation I have added below code into my route file web.php file use…
Nipun Tharuksha
  • 2,496
  • 4
  • 17
  • 40
0
votes
1 answer

Spatie Sitemap not generating URLs on localhost

I am creating a website in Laravel 5.8 and using Spatie sitemap package to create Sitemap dynamically, It doesn't crawl my website and only generates homepage URL. Route::get('/sitemap',function(){ SitemapGenerator::create( 'http://localhost/'…
-1
votes
1 answer

Call to undefined method Spatie\Sitemap\Sitemap::getType()

I am attempting to index all of our items for a sitemap. I am using the Spatie Sitemap Generator package to do this. Currently we have over 65,000 items which is problematic because a sitemap can only contain 50,000 links. No matter though, the…
Noah Gary
  • 916
  • 12
  • 25
-1
votes
1 answer

Laravel Spatie/sitemap only contains 1 URL

I'm using spatie/sitemap this is what i do to inform me that sitemap is created Route::get('sitemap', function(){ SitemapGenerator::create('http://localhost/')->writeToFile('sitemap.xml'); return "sitemap created"; }); and this is my…
Dava Eranda
  • 29
  • 1
  • 1
  • 8