faker->dateTimeBetween('-60 days', '-1 days'); return [ 'site_id' => Site::factory(), 'domain' => $this->faker->domainName(), 'issuer' => "Let's Encrypt", 'issued_at' => $issued, 'expires_at' => (clone $issued)->modify('+90 days'), 'auto_renew' => true, ]; } public function expiringSoon(): self { return $this->state(['expires_at' => now()->addDays(5)]); } }