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