Deploy Ladill QR Plus / deploy (push) Successful in 28s
Full control center for ticketed events, contributions, attendees, badges, and programmes — not a QR utility clone. Includes SSO shell, import command, and platform cutover runbook. Co-authored-by: Cursor <cursoragent@cursor.com>
41 lines
1.2 KiB
PHP
41 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\HostingNode;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class HostingNodeSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
HostingNode::firstOrCreate(
|
|
['provider' => 'local', 'ip_address' => '127.0.0.1'],
|
|
[
|
|
'name' => 'Primary Server',
|
|
'hostname' => gethostname() ?: 'localhost',
|
|
'ip_address' => '127.0.0.1',
|
|
'ipv6_address' => '::1',
|
|
'type' => 'shared',
|
|
'segment' => 'general',
|
|
'provider' => 'local',
|
|
'cpu_cores' => 4,
|
|
'ram_mb' => 8192,
|
|
'disk_gb' => 150,
|
|
'oversell_ratio' => 3,
|
|
'bandwidth_tb' => 10,
|
|
'max_accounts' => 100,
|
|
'current_accounts' => 0,
|
|
'status' => 'active',
|
|
'ssh_port' => 22,
|
|
'features' => ['php', 'mysql', 'nginx', 'ssl'],
|
|
'installed_software' => [
|
|
'php' => ['8.1', '8.2', '8.3'],
|
|
'mysql' => '8.0',
|
|
'nginx' => '1.24',
|
|
],
|
|
]
|
|
);
|
|
}
|
|
}
|