Bootstrap Ladill Link from QR Plus extract template.
This commit is contained in:
@@ -0,0 +1,29 @@
|
||||
<?php
|
||||
|
||||
namespace Database\Seeders;
|
||||
|
||||
use App\Models\User;
|
||||
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||||
use Illuminate\Database\Seeder;
|
||||
use Database\Seeders\HostingProductSeeder;
|
||||
|
||||
class DatabaseSeeder extends Seeder
|
||||
{
|
||||
use WithoutModelEvents;
|
||||
|
||||
/**
|
||||
* Seed the application's database.
|
||||
*/
|
||||
public function run(): void
|
||||
{
|
||||
$this->call([
|
||||
HostingProductSeeder::class,
|
||||
]);
|
||||
// User::factory(10)->create();
|
||||
|
||||
User::factory()->create([
|
||||
'name' => 'Test User',
|
||||
'email' => 'test@example.com',
|
||||
]);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,40 @@
|
||||
<?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',
|
||||
],
|
||||
]
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user