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

33 lines
957 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 App\Models\EducationalInstitution;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class EducationalInstitutionSeeder extends Seeder
{
/**
* Run the database seeds.
*/
public function run(): void
{
DB::table('educational_institutions')->insert([
[
'name' => 'МГТУ',
'description' => 'ФГБОУ ВО Майкопский государственный технологический университет',
'slug' => 'mkgtu',
'position' => 1,
],
[
'name' => 'Педколледж',
'description' => 'ФГБОУ СПО Педагогический колледж',
'slug' => 'pedcollege',
'position' => 1,
],
]);
}
}