Roman_applicant-site/database/seeders/PlaceSeeder.php

35 lines
1007 B
PHP

<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class PlaceSeeder extends Seeder
{
public function run(): void
{
DB::table('places')->insert([
[
'position' => 1,
'amount' => 25,
'quota' => 4,
'education_form_id' => 1,
'place_type_id' => 1,
'direction_id' => 1,
'description' => 'очная бюджетная форма 25 мест юриспруденция',
],
[
'position' => 2,
'amount' => 30,
'quota' => 8,
'education_form_id' => 2,
'place_type_id' => 2,
'direction_id' => 1,
'description' => 'заочная платная форма 30 мест юриспруденция',
],
]);
}
}