2024-05-07 10:35:04 +03:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
|
|
|
|
use Carbon\Carbon;
|
|
|
|
|
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
|
|
|
|
|
use Illuminate\Database\Seeder;
|
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
|
|
|
|
class TaskStatusSeeder extends Seeder
|
|
|
|
|
{
|
|
|
|
|
public function run(): void
|
|
|
|
|
{
|
|
|
|
|
DB::table('task_statuses')->insert([
|
|
|
|
|
[
|
|
|
|
|
'name' => 'Создан',
|
2024-05-23 14:48:29 +03:00
|
|
|
|
'project_id' => 1,
|
2024-05-07 10:35:04 +03:00
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => 'В работе',
|
2024-05-23 14:48:29 +03:00
|
|
|
|
'project_id' => 1,
|
2024-05-07 10:35:04 +03:00
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => 'На проверке',
|
2024-05-23 14:48:29 +03:00
|
|
|
|
'project_id' => 1,
|
2024-05-07 10:35:04 +03:00
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
],
|
|
|
|
|
[
|
|
|
|
|
'name' => 'Выполнен',
|
2024-05-23 14:48:29 +03:00
|
|
|
|
'project_id' => 1,
|
2024-05-07 10:35:04 +03:00
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
],
|
|
|
|
|
]);
|
|
|
|
|
}
|
|
|
|
|
}
|