2024-02-07 16:30:49 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
2024-02-08 16:20:05 +03:00
|
|
|
use App\Models\Faculty;
|
2024-02-07 16:30:49 +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 16:30:49 +03:00
|
|
|
|
|
|
|
class FacultySeeder extends Seeder
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Run the database seeds.
|
|
|
|
*/
|
|
|
|
public function run(): void
|
|
|
|
{
|
2024-02-12 12:15:46 +03:00
|
|
|
// Faculty::factory(3)->create();
|
2024-02-08 16:20:05 +03:00
|
|
|
DB::table('faculties')->insert([
|
|
|
|
[
|
|
|
|
'name' => 'Информационная безопасность',
|
|
|
|
'description' => 'Факультет информационной безопасности описание',
|
|
|
|
'position' => 1,
|
2024-02-12 12:15:46 +03:00
|
|
|
'slug' => 'new-slug-inf',
|
2024-02-08 16:20:05 +03:00
|
|
|
'educational_institution_id' => 1,
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'Лечебный факультет',
|
|
|
|
'description' => 'Факультет Лечебный описание',
|
|
|
|
'position' => 1,
|
2024-02-12 12:15:46 +03:00
|
|
|
'slug' => 'new-slug-med',
|
2024-02-08 16:20:05 +03:00
|
|
|
'educational_institution_id' => 2,
|
|
|
|
],
|
|
|
|
]);
|
2024-02-07 16:30:49 +03:00
|
|
|
}
|
|
|
|
}
|