mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-01 05:56:16 +00:00
laravel 12 upgrade (#586)
* laravel 12 upgrade * upgrade scribe to v5 * fix lint
This commit is contained in:
@ -16,6 +16,7 @@ class CronJobFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'server_id' => 1,
|
||||
'command' => 'ls -la',
|
||||
'user' => 'root',
|
||||
'frequency' => '* * * * *',
|
||||
|
@ -16,6 +16,7 @@ class DatabaseFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'server_id' => 1,
|
||||
'name' => $this->faker->userName,
|
||||
'status' => DatabaseStatus::READY,
|
||||
];
|
||||
|
@ -15,6 +15,7 @@ class DatabaseUserFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'server_id' => 1,
|
||||
'username' => $this->faker->userName,
|
||||
'password' => 'password',
|
||||
'databases' => [],
|
||||
|
@ -15,6 +15,7 @@ class FirewallRuleFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'server_id' => 1,
|
||||
'name' => $this->faker->word,
|
||||
'type' => 'allow',
|
||||
'protocol' => 'tcp',
|
||||
|
@ -19,6 +19,7 @@ class RedirectFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'site_id' => 1,
|
||||
'from' => $this->faker->word,
|
||||
'to' => $this->faker->url,
|
||||
'mode' => $this->faker->randomElement([301, 302, 307, 308]),
|
||||
|
@ -19,6 +19,8 @@ class ServerFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'project_id' => 1,
|
||||
'user_id' => 1,
|
||||
'name' => $this->faker->name(),
|
||||
'ssh_user' => 'vito',
|
||||
'ip' => $this->faker->ipv4(),
|
||||
|
@ -2,6 +2,7 @@
|
||||
|
||||
namespace Database\Factories;
|
||||
|
||||
use App\Enums\ServiceStatus;
|
||||
use App\Models\Service;
|
||||
use Illuminate\Database\Eloquent\Factories\Factory;
|
||||
|
||||
@ -15,6 +16,10 @@ class ServiceFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'server_id' => 1,
|
||||
'type' => 'webserver',
|
||||
'name' => 'nginx',
|
||||
'status' => ServiceStatus::READY,
|
||||
];
|
||||
}
|
||||
}
|
||||
|
@ -16,6 +16,7 @@ class SiteFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'server_id' => 1,
|
||||
'type' => SiteType::LARAVEL,
|
||||
'domain' => 'test.com',
|
||||
'web_directory' => '/',
|
||||
|
@ -15,6 +15,7 @@ class SshKeyFactory extends Factory
|
||||
public function definition(): array
|
||||
{
|
||||
return [
|
||||
'user_id' => 1,
|
||||
'name' => $this->faker->name(),
|
||||
'public_key' => 'public-key-content',
|
||||
];
|
||||
|
Reference in New Issue
Block a user