applicant-site/database/seeders/DirectionSeeder.php

50 lines
1.6 KiB
PHP
Raw Normal View History

2024-02-10 11:23:38 +03:00
<?php
namespace Database\Seeders;
use App\Models\Direction;
2024-02-10 11:23:38 +03:00
use Illuminate\Database\Seeder;
2024-02-14 16:16:44 +03:00
use Illuminate\Support\Facades\DB;
2024-02-10 11:23:38 +03:00
class DirectionSeeder extends Seeder
{
public function run(): void
{
2024-02-14 16:16:44 +03:00
DB::table('directions')->insert([
[
'name' => 'Юриспруденция',
'full_name' => '40.03.01 Юриспруденция',
2024-02-14 16:16:44 +03:00
'description' => 'Юриспруденция',
'slug' => 'jurisprudence',
'code' => '40.03.01',
'position' => 1,
'department_id' => 1,
'education_level_id' => 1,
2024-02-15 09:58:01 +03:00
'education_form_id' => 1,
2024-02-14 16:16:44 +03:00
],
[
'name' => 'фармация',
'full_name' => '33.05.01 фармация',
2024-02-14 16:16:44 +03:00
'description' => 'фармация',
'slug' => 'pharmacy',
'code' => '33.05.01',
'position' => 2,
'department_id' => 1,
'education_level_id' => 2,
2024-02-15 09:58:01 +03:00
'education_form_id' => 2,
2024-02-14 16:16:44 +03:00
],
[
'name' => 'строительство',
'full_name' => '08.04.01 строительство',
2024-02-14 16:16:44 +03:00
'description' => 'строительство',
'slug' => 'construction',
'code' => '08.04.01',
'position' => 3,
'department_id' => 1,
'education_level_id' => 3,
2024-02-15 09:58:01 +03:00
'education_form_id' => 3,
2024-02-14 16:16:44 +03:00
],
]);
2024-02-10 11:23:38 +03:00
}
}