2023-03-30 21:15:25 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
|
|
use App\Models\Server;
|
|
|
|
use App\Models\Team;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class ServerSettingSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*/
|
|
|
|
public function run(): void
|
|
|
|
{
|
2023-04-14 12:58:45 +02:00
|
|
|
$server_2 = Server::find(1)->load(['settings']);
|
2023-03-30 21:15:25 +02:00
|
|
|
$server_2->settings->is_build_server = true;
|
2023-05-08 09:16:50 +02:00
|
|
|
$server_2->settings->is_validated = true;
|
2023-03-30 21:15:25 +02:00
|
|
|
$server_2->settings->save();
|
|
|
|
|
2023-04-14 12:58:45 +02:00
|
|
|
$server_3 = Server::find(2)->load(['settings']);
|
2023-05-08 09:16:50 +02:00
|
|
|
$server_3->settings->is_build_server = false;
|
|
|
|
$server_3->settings->is_validated = false;
|
2023-04-14 10:00:42 +02:00
|
|
|
$server_3->settings->save();
|
2023-03-30 21:15:25 +02:00
|
|
|
}
|
|
|
|
}
|