feat: initialize Dr-Panel project with patient file number support
This commit is contained in:
@@ -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
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user