copy()->addMonths($monthOffset); PayrollPeriod::factory()->create([ 'year' => $date->year, 'month' => $date->month, ]); } } }