forked from aslan/applicant-site
38 lines
990 B
PHP
38 lines
990 B
PHP
|
<?php
|
||
|
|
||
|
namespace Database\Seeders;
|
||
|
|
||
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
||
|
use Illuminate\Database\Seeder;
|
||
|
use Illuminate\Support\Facades\DB;
|
||
|
|
||
|
class AdmissionSeeder extends Seeder
|
||
|
{
|
||
|
public function run(): void
|
||
|
{
|
||
|
DB::table('admissions')->insert([
|
||
|
[
|
||
|
'name' => 'Пункт 1',
|
||
|
'position' => 2,
|
||
|
'description' => 'description 1',
|
||
|
'slug' => 'point-1',
|
||
|
'created_at' => now(),
|
||
|
],
|
||
|
[
|
||
|
'name' => 'Пункт 2',
|
||
|
'position' => 3,
|
||
|
'description' => 'description 2',
|
||
|
'slug' => 'point-2',
|
||
|
'created_at' => now(),
|
||
|
],
|
||
|
[
|
||
|
'name' => 'Пункт 3',
|
||
|
'description' => 'description 3',
|
||
|
'position' => 1,
|
||
|
'slug' => 'point-3',
|
||
|
'created_at' => now(),
|
||
|
]
|
||
|
]);
|
||
|
}
|
||
|
}
|