feat: add cms_type and WordPress credential fields to sites

This commit is contained in:
Doar Mihai
2026-07-19 16:43:13 +03:00
parent 88c8203931
commit 30095519e4
4 changed files with 68 additions and 0 deletions
+12
View File
@@ -15,6 +15,18 @@ class SiteFactory extends Factory
'name' => fake()->company(),
'url' => fake()->url(),
'description' => fake()->optional()->sentence(),
'cms_type' => 'custom',
'wp_username' => null,
'wp_app_password' => null,
];
}
public function wordpress(): static
{
return $this->state(fn () => [
'cms_type' => 'wordpress',
'wp_username' => fake()->userName(),
'wp_app_password' => fake()->password(),
]);
}
}