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' => 'ФГБОУ ВО Майкопский государственный технологический университет',
|
2024-02-08 18:34:45 +03:00
|
|
|
|
'slug' => 'mkgtu',
|
|
|
|
|
'position' => 1,
|
2024-02-08 16:20:05 +03:00
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => 'Педколледж',
|
|
|
|
|
'description' => 'ФГБОУ СПО Педагогический колледж',
|
2024-02-08 18:34:45 +03:00
|
|
|
|
'slug' => 'pedcollege',
|
|
|
|
|
'position' => 1,
|
2024-02-08 16:20:05 +03:00
|
|
|
|
],
|
|
|
|
|
]);
|
2024-02-07 10:18:46 +03:00
|
|
|
|
}
|
|
|
|
|
}
|