applicant-site/database/seeders/DocumentSeeder.php

46 lines
1.2 KiB
PHP
Raw Normal View History

2024-01-23 17:58:48 +03:00
<?php
namespace Database\Seeders;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class DocumentSeeder extends Seeder
2024-01-23 17:58:48 +03:00
{
/**
* Run the database seeds.
*/
public function run(): void
{
DB::table('documents')->insert([
2024-01-23 17:58:48 +03:00
[
'name' => 'файл 1',
'file_name' => 'file1',
2024-01-23 17:58:48 +03:00
'description' => 'description1',
'url' => 'url/url1',
'position' => 2,
'admission_id' => 1,
'created_at' => now(),
2024-01-23 17:58:48 +03:00
],
[
'name' => 'файл 2',
'description' => 'description2',
'file_name' => 'file2',
2024-01-23 17:58:48 +03:00
'url' => 'url/url2',
'position' => 3,
'admission_id' => 1,
'created_at' => now(),
2024-01-23 17:58:48 +03:00
],
[
'name' => 'файл 3',
'file_name' => 'file3',
2024-01-23 17:58:48 +03:00
'description' => 'description3',
'url' => 'url/url3',
'admission_id' => 1,
2024-01-23 17:58:48 +03:00
'position' => 1,
'created_at' => now(),
2024-01-23 17:58:48 +03:00
]
]);
}
}