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

31 lines
880 B
PHP
Raw 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' => 'ФГБОУ ВО Майкопский государственный технологический университет',
'position' => 1
],
[
'name' => 'Педколледж',
'description' => 'ФГБОУ СПО Педагогический колледж',
'position' => 1
],
]);
2024-02-07 10:18:46 +03:00
}
}