forked from aslan/applicant-site
36 lines
1.1 KiB
PHP
36 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use App\Models\Faculty;
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class FacultySeeder extends Seeder
|
|
{
|
|
/**
|
|
* Run the database seeds.
|
|
*/
|
|
public function run(): void
|
|
{
|
|
// Faculty::factory(3)->create();
|
|
DB::table('faculties')->insert([
|
|
[
|
|
'name' => 'Информационная безопасность',
|
|
'description' => 'Факультет информационной безопасности описание',
|
|
'position' => 1,
|
|
'slug' => 'new-slug-inf',
|
|
'educational_institution_id' => 1,
|
|
],
|
|
[
|
|
'name' => 'Лечебный факультет',
|
|
'description' => 'Факультет Лечебный описание',
|
|
'position' => 1,
|
|
'slug' => 'new-slug-med',
|
|
'educational_institution_id' => 2,
|
|
],
|
|
]);
|
|
}
|
|
}
|