feat: add cms_type and WordPress credential fields to sites
This commit is contained in:
@@ -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(),
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user