PHP code example of ezitisitis / laravel-sitemap-generator
1. Go to this page and download the library: Download ezitisitis/laravel-sitemap-generator library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ezitisitis / laravel-sitemap-generator example snippets
protected function schedule(Schedule $schedule): void
{
$schedule->command('sitemap:generate')->daily();
}
bash
php artisan sitemap:generate