feat: initialize Dr-Panel project with patient file number support

This commit is contained in:
SajjadMahmoody
2026-05-06 02:18:23 +03:30
parent f8f174690a
commit 8b84d1780f
460 changed files with 113960 additions and 1 deletions
+28
View File
@@ -0,0 +1,28 @@
<?php
namespace Database\Seeders;
use App\Models\Doctor;
use Illuminate\Database\Seeder;
class DoctorSeeder extends Seeder
{
public function run(): void
{
$doctors = [
[
'first_name' => 'مسعود',
'last_name' => 'شایگان',
'speciality' => 'متخصص جراحی فک و صورت',
'license_id' => '126900',
],
];
foreach ($doctors as $doctor) {
Doctor::firstOrCreate(
['license_id' => $doctor['license_id']],
$doctor
);
}
}
}