Roman_applicant-site/database/seeders/EducationFormSeeder.php

32 lines
815 B
PHP

<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class EducationFormSeeder extends Seeder
{
public function run(): void
{
DB::table('education_forms')->insert([
[
'name' => 'очная',
'description' => 'очная',
'slug' => 'full-time',
],
[
'name' => 'заочная',
'description' => 'специалитет',
'slug' => 'part-time',
],
[
'name' => 'очно-заочная',
'description' => 'очно-заочная',
'slug' => 'blended',
],
]);
}
}