Roman_applicant-site/database/seeders/EducationalInstitutionSeede...

33 lines
957 B
PHP
Raw Permalink Normal View History

2024-02-07 10:18:46 +03:00
<?php
namespace Database\Seeders;
2024-02-08 16:20:05 +03:00
use App\Models\EducationalInstitution;
2024-02-07 10:18:46 +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 10:18:46 +03:00
class EducationalInstitutionSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
2024-02-08 16:20:05 +03:00
DB::table('educational_institutions')->insert([
[
'name' => 'МГТУ',
'description' => 'ФГБОУ ВО Майкопский государственный технологический университет',
'slug' => 'mkgtu',
'position' => 1,
2024-02-08 16:20:05 +03:00
],
[
'name' => 'Педколледж',
'description' => 'ФГБОУ СПО Педагогический колледж',
'slug' => 'pedcollege',
'position' => 1,
2024-02-08 16:20:05 +03:00
],
]);
2024-02-07 10:18:46 +03:00
}
}