LAR_Maintenance/database/seeders/TaskSeeder.php
Jonatan Rek 866eee5b16 Fixes
2024-08-06 16:20:45 +02:00

24 lines
492 B
PHP

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