applicant-site/database/seeders/FacultySeeder.php

33 lines
958 B
PHP
Raw Normal View History

2024-02-07 16:30:49 +03:00
<?php
namespace Database\Seeders;
2024-02-08 16:20:05 +03:00
use App\Models\Faculty;
2024-02-07 16:30:49 +03:00
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
2024-02-08 16:20:05 +03:00
use Illuminate\Support\Facades\DB;
2024-02-07 16:30:49 +03:00
class FacultySeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
2024-02-08 16:20:05 +03:00
DB::table('faculties')->insert([
[
'name' => 'Информационная безопасность',
'description' => 'Факультет информационной безопасности описание',
'position' => 1,
'educational_institution_id' => 1,
],
[
'name' => 'Лечебный факультет',
'description' => 'Факультет Лечебный описание',
'position' => 1,
'educational_institution_id' => 2,
],
]);
2024-02-07 16:30:49 +03:00
}
}