title: Sitemap Generator timed out, maximum execution time of 60 seconds exceeded
body: <p>I need to generate a sitemap.</p>
  
  <p>I am using <a href="https://github.com/spatie/laravel-sitemap" rel="nofollow noreferrer">spatie/laravel-sitemap</a>. I have installed and published it but when I run the generator Symphony throws a fatal error: <code>Maximum execution time of 60 seconds exceeded</code>. </p>
  
  <p>I have a huge list of links and left just one to test, but still getting the same error.</p>
  
  <p>How to fix that? Here is my <code>web.php</code> code:</p>
  
  <pre><code>&lt;?php
  
  use Spatie\Sitemap\SitemapGenerator;
  
  // this link throws a fatal error: Maximum execution time of 60 seconds exceeded
  Route::get('sitemap', function(){
  
      SitemapGenerator::create('127.0.0.1:8000')-&gt;writeToFile('sitemap.xml');
  
      return 'sitemap created';
  
  });
  
  // this link is tested and fully working
  Route::get('', function () {
      return view('home');
  });
  </code></pre>