LAR_Maintenance/database/seeders/HostSeeder.php

23 lines
458 B
PHP
Raw Permalink Normal View History

2024-08-06 14:20:45 +00:00
<?php
namespace Database\Seeders;
use App\Models\Host;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class HostSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
foreach (['IT-PRG-DOCKER', 'IT-PRG-DOCKER02', 'CK-PRG-DOCKER01'] as $hostname) {
Host::create([
'hostname' => $hostname,
]);
}
}
}