info('Starting sitemap monitoring...'); $sitemaps = Sitemap::where('is_active', true)->get(); if ($sitemaps->isEmpty()) { $this->warn('No active sitemaps found to monitor.'); return Command::SUCCESS; } $this->info("Found {$sitemaps->count()} active sitemap(s) to check."); $progressBar = $this->output->createProgressBar($sitemaps->count()); $progressBar->start(); foreach ($sitemaps as $sitemap) { CheckSitemap::dispatch($sitemap); $progressBar->advance(); } $progressBar->finish(); $this->newLine(); $this->info('Sitemap check jobs have been dispatched.'); return Command::SUCCESS; } }