laravel 12 upgrade (#586)

* laravel 12 upgrade

* upgrade scribe to v5

* fix lint
This commit is contained in:
Saeed Vaziry
2025-04-21 21:56:53 +02:00
committed by GitHub
parent 76059aff3c
commit 6eb88c7c6e
52 changed files with 19140 additions and 26710 deletions

View File

@ -16,6 +16,7 @@ class CronJobFactory extends Factory
public function definition(): array
{
return [
'server_id' => 1,
'command' => 'ls -la',
'user' => 'root',
'frequency' => '* * * * *',

View File

@ -16,6 +16,7 @@ class DatabaseFactory extends Factory
public function definition(): array
{
return [
'server_id' => 1,
'name' => $this->faker->userName,
'status' => DatabaseStatus::READY,
];

View File

@ -15,6 +15,7 @@ class DatabaseUserFactory extends Factory
public function definition(): array
{
return [
'server_id' => 1,
'username' => $this->faker->userName,
'password' => 'password',
'databases' => [],

View File

@ -15,6 +15,7 @@ class FirewallRuleFactory extends Factory
public function definition(): array
{
return [
'server_id' => 1,
'name' => $this->faker->word,
'type' => 'allow',
'protocol' => 'tcp',

View File

@ -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]),

View File

@ -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(),

View File

@ -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,
];
}
}

View File

@ -16,6 +16,7 @@ class SiteFactory extends Factory
public function definition(): array
{
return [
'server_id' => 1,
'type' => SiteType::LARAVEL,
'domain' => 'test.com',
'web_directory' => '/',

View File

@ -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',
];