2023-03-30 19:15:25 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
|
|
use App\Models\Server;
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
|
|
|
class ServerSettingSeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*/
|
|
|
|
public function run(): void
|
|
|
|
{
|
2023-06-14 10:48:29 +00:00
|
|
|
$server_2 = Server::find(0)->load(['settings']);
|
2023-07-05 20:10:10 +00:00
|
|
|
$server_2->settings->wildcard_domain = 'http://127.0.0.1.sslip.io';
|
2024-01-16 14:19:14 +00:00
|
|
|
$server_2->settings->is_build_server = false;
|
2023-07-14 11:38:24 +00:00
|
|
|
$server_2->settings->is_usable = true;
|
2023-06-15 11:51:31 +00:00
|
|
|
$server_2->settings->is_reachable = true;
|
2023-03-30 19:15:25 +00:00
|
|
|
$server_2->settings->save();
|
|
|
|
}
|
2023-07-14 11:38:24 +00:00
|
|
|
}
|