*/ class DomainFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'domain_hash' => bin2hex(random_bytes(32)), 'name' => $this->faker->unique()->domainName(), 'allowed_types' => ['public', 'premium'], 'is_active' => true, 'is_archived' => false, ]; } }