Files
ladill-pos/database/seeders/HostingNodeSeeder.php
T
isaaccladandCursor e5d2b84388
Deploy Ladill Mini / deploy (push) Successful in 23s
Add Ladill POS v1 — register, Pay checkout, and commerce links.
Staff-facing counter register at pos.ladill.com with catalog cart, cash and
MoMo/card checkout via Ladill Pay, CRM timeline/import, invoice prefill, and
Merchant catalog import.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-23 22:52:24 +00:00

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