copy()->addYears(2); $this->info("Generating schedules from {$startDate->toDateString()} to {$endDate->toDateString()} for all planners."); $planners = Planner::all(); if ($planners->isEmpty()) { $this->warn('No planners found. Aborting schedule generation.'); return self::FAILURE; } foreach ($planners as $planner) { $this->info("Processing schedules for Planner ID: {$planner->id}"); resolve(GenerateSchedulesForUserAction::class)->execute($planner); } $this->info('Schedule generation for all planners has been completed.'); return self::SUCCESS; } }