first&last

This commit is contained in:
sbb45
2026-03-20 15:47:17 +05:00
commit d6441abdd2
230 changed files with 20367 additions and 0 deletions
+23
View File
@@ -0,0 +1,23 @@
<?php
namespace Database\Seeders;
use App\Models\Priority;
use Illuminate\Database\Seeder;
class PrioritySeeder extends Seeder
{
public function run(): void
{
$priorities = [
['name' => 'Низкий', 'color_hex' => '#10B981', 'level' => 1],
['name' => 'Средний', 'color_hex' => '#3B82F6', 'level' => 2],
['name' => 'Высокий', 'color_hex' => '#F59E0B', 'level' => 3],
['name' => 'Критический', 'color_hex' => '#EF4444', 'level' => 4],
];
foreach ($priorities as $priority) {
Priority::query()->updateOrCreate(['level' => $priority['level']], $priority);
}
}
}