33 lines
947 B
PHP
33 lines
947 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,
|
|
'education_form_id' => 1,
|
|
'place_type_id' => 1,
|
|
'direction_id' => 1,
|
|
'description' => 'очная бюджетная форма 25 мест юриспруденция',
|
|
],
|
|
[
|
|
'position' => 2,
|
|
'amount' => 30,
|
|
'education_form_id' => 2,
|
|
'place_type_id' => 2,
|
|
'direction_id' => 1,
|
|
'description' => 'заочная платная форма 30 мест юриспруденция',
|
|
],
|
|
]);
|
|
}
|
|
}
|