forked from aslan/applicant-site
31 lines
789 B
PHP
31 lines
789 B
PHP
<?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 года',
|
|
],
|
|
]);
|
|
}
|
|
}
|