37 lines
963 B
PHP
37 lines
963 B
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' => 'приказ № 1000',
|
|
'created_at' => Carbon::now(),
|
|
],
|
|
[
|
|
'name' => 'Срочно',
|
|
'created_at' => Carbon::now(),
|
|
],
|
|
[
|
|
'name' => 'повышенный приоритет',
|
|
'created_at' => Carbon::now(),
|
|
],
|
|
]);
|
|
}
|
|
}
|