2024-04-27 15:14:55 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
2024-05-02 16:54:51 +03:00
|
|
|
use Carbon\Carbon;
|
2024-04-27 15:14:55 +03:00
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
|
|
use Illuminate\Database\Seeder;
|
2024-05-02 16:54:51 +03:00
|
|
|
use Illuminate\Support\Facades\DB;
|
2024-04-27 15:14:55 +03:00
|
|
|
|
|
|
|
class NoteSeeder extends Seeder
|
|
|
|
{
|
|
|
|
public function run(): void
|
|
|
|
{
|
2024-05-02 16:54:51 +03:00
|
|
|
DB::table('notes')->insert([
|
|
|
|
[
|
|
|
|
'name' => 'добавлен приказ',
|
|
|
|
'description' => 'разработка',
|
|
|
|
'file' => 'file1.pdf',
|
|
|
|
'task_id' => 1,
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'приказ № 1000',
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'Срочно',
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
[
|
|
|
|
'name' => 'повышенный приоритет',
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
],
|
|
|
|
]);
|
2024-04-27 15:14:55 +03:00
|
|
|
}
|
|
|
|
}
|