base commit

This commit is contained in:
Mekan1206
2026-07-30 17:24:40 +05:00
commit a794dacd39
345 changed files with 29597 additions and 0 deletions

View File

@@ -0,0 +1,32 @@
<?php
declare(strict_types=1);
namespace Database\Seeders;
use App\Models\Position;
use Illuminate\Database\Seeder;
class PositionSeeder extends Seeder
{
/**
* @var list<string>
*/
private const POSITIONS = [
'Operator',
'Mechanic',
'Electrician',
'Cleaner',
'Manager',
];
public function run(): void
{
foreach (self::POSITIONS as $positionName) {
Position::query()->firstOrCreate(
['name' => $positionName],
['description' => null],
);
}
}
}