Roman_applicant-site/database/seeders/DirectionSeeder.php

44 lines
1.2 KiB
PHP

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