LAR_Maintenance/database/seeders/TaskSeeder.php

24 lines
492 B
PHP
Raw Permalink Normal View History

2024-08-06 14:20:45 +00:00
<?php
namespace Database\Seeders;
use App\Models\Task;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
class TaskSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
foreach (['Update Zabbixu', 'Instalace Aktualizací', 'Kontrola Logu'] as $name) {
Task::create([
'name' => $name,
'description' => $name,
]);
}
}
}