HEX
Server: nginx/1.24.0
System: Linux DGT-WORDPRESS-VM-SERVER 6.14.0-1014-azure #14~24.04.1-Ubuntu SMP Fri Oct 3 20:52:11 UTC 2025 x86_64
User: ubuntu (1000)
PHP: 8.4.12
Disabled: NONE
Upload Files
File: /mnt/data/ghayatcom/ghayatcom-api/database/seeders/ExaminationsSeeder.php
<?php

namespace Database\Seeders;

use App\Examinations;
use Illuminate\Database\Seeder;
use DateTime;

class ExaminationsSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $datas = [
            1 => [
                'examination' => 'Radiology',
                'created_at' => new DateTime,
                'created_by' => 1,
            ],
            2 => [
                'examination' => 'Cardiac',
                'created_at' => new DateTime,
                'created_by' => 1,
            ],
            3 => [
                'examination' => 'Urology',
                'created_at' => new DateTime,
                'created_by' => 1,
            ],
            4 => [
                'examination' => 'Execute Screening',
                'created_at' => new DateTime,
                'created_by' => 1,
            ],
            5 => [
                'examination' => 'Other ',
                'created_at' => new DateTime,
                'created_by' => 1,
            ],

        ];

        foreach ($datas as $id => $data) {
            Examinations::create($data);
        }
    }
}