46 lines
1.4 KiB
PHP
46 lines
1.4 KiB
PHP
<?php
|
|
|
|
namespace Database\Seeders;
|
|
|
|
use Carbon\Carbon;
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
use Illuminate\Database\Seeder;
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
class NoteSeeder extends Seeder
|
|
{
|
|
public function run(): void
|
|
{
|
|
DB::table('notes')->insert([
|
|
[
|
|
'name' => 'добавлен приказ',
|
|
'description' => 'разработка',
|
|
'file' => 'file1.pdf',
|
|
'task_id' => 1,
|
|
'created_at' => Carbon::now(),
|
|
],
|
|
[
|
|
'name' => 'Добавлен исполнитель',
|
|
'description' => 'Юзер 2',
|
|
'file' => 'file2.pdf',
|
|
'task_id' => 1,
|
|
'created_at' => Carbon::now(),
|
|
],
|
|
[
|
|
'name' => 'приказ 255',
|
|
'description' => 'обратить внимание',
|
|
'file' => 'file3.pdf',
|
|
'task_id' => 1,
|
|
'created_at' => Carbon::now(),
|
|
],
|
|
[
|
|
'name' => 'работа на выходных',
|
|
'description' => 'установка оборудвания',
|
|
'file' => 'file4.pdf',
|
|
'task_id' => 1,
|
|
'created_at' => Carbon::now(),
|
|
],
|
|
]);
|
|
}
|
|
}
|