31 lines
555 B
PHP
31 lines
555 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\LabTest;
|
|
use Illuminate\Database\Seeder;
|
|
|
|
class LabTestSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
$tests = [
|
|
'CBC',
|
|
'PT/PTT/INR',
|
|
'BS',
|
|
'HIV/Ab',
|
|
'HBS/Ag',
|
|
'Hcv/Ab',
|
|
];
|
|
|
|
foreach ($tests as $name) {
|
|
LabTest::firstOrCreate(
|
|
['name' => $name],
|
|
['is_default' => true, 'is_active' => true],
|
|
);
|
|
}
|
|
}
|
|
}
|