applicant-site/database/seeders/CostSeeder.php

31 lines
813 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Database\Seeders;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class CostSeeder extends Seeder
{
public function run(): void
{
DB::table('costs')->insert([
[
'position' => 1,
'cost' => 103000,
'education_form_id' => 1,
'direction_id' => 1,
'description' => 'стоимость обучения 103 000 руб',
],
[
'position' => 2,
'cost' => 42000,
'education_form_id' => 2,
'direction_id' => 1,
'description' => 'стоимость обучения 42 000 руб',
],
]);
}
}