Roman_applicant-site/database/seeders/PeriodSeeder.php

31 lines
789 B
PHP
Raw Normal View History

2024-02-26 11:34:33 +03:00
<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class PeriodSeeder extends Seeder
{
public function run(): void
{
DB::table('periods')->insert([
[
'position' => 1,
'period' => 4.5,
'education_form_id' => 1,
'direction_id' => 1,
'description' => 'срок обучения 4.5 года',
],
[
'position' => 1,
'period' => 5,
'education_form_id' => 2,
'direction_id' => 1,
'description' => 'срок обучения 5 года',
],
]);
}
}