33 lines
957 B
PHP
33 lines
957 B
PHP
<?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,
|
||
],
|
||
]);
|
||
}
|
||
}
|