applicant-site/database/seeders/ExaminationTypeSeeder.php

36 lines
1.0 KiB
PHP

<?php
namespace Database\Seeders;
use App\Enums\ExaminationTypeEnum;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class ExaminationTypeSeeder extends Seeder
{
public function run(): void
{
DB::table('examination_types')->insert([
[
'name' => 'ЕГЭ',
'description' => 'Unified State Examination',
'position' => ExaminationTypeEnum::Ege->value,
'slug' => 'USE',
],
[
'name' => 'СПО',
'description' => 'secondary vocational education',
'position' => ExaminationTypeEnum::Spo->value,
'slug' => 'SVE',
],
[
'name' => 'магитсратура',
'description' => 'type magistracy',
'position' => ExaminationTypeEnum::Magistracy->value,
'slug' => 'MAG',
],
]);
}
}