2024-04-27 15:06:00 +03:00
|
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
namespace Database\Seeders;
|
|
|
|
|
|
2024-05-02 16:54:51 +03:00
|
|
|
|
use Carbon\Carbon;
|
2024-04-27 15:06:00 +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:06:00 +03:00
|
|
|
|
|
|
|
|
|
class LabelSeeder extends Seeder
|
|
|
|
|
{
|
|
|
|
|
public function run(): void
|
|
|
|
|
{
|
2024-05-02 16:54:51 +03:00
|
|
|
|
DB::table('labels')->insert([
|
|
|
|
|
[
|
2024-05-07 10:35:04 +03:00
|
|
|
|
'name' => 'ошибка',
|
|
|
|
|
'description' => 'Какая-то ошибка в коде или проблема с функциональностью',
|
2024-05-02 16:54:51 +03:00
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
],
|
|
|
|
|
[
|
2024-05-07 10:35:04 +03:00
|
|
|
|
'name' => 'документация',
|
|
|
|
|
'description' => 'Задача которая касается документации',
|
2024-05-02 16:54:51 +03:00
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
],
|
|
|
|
|
[
|
2024-05-07 10:35:04 +03:00
|
|
|
|
'name' => 'дубликат',
|
|
|
|
|
'description' => 'Повтор другой задачи',
|
2024-05-02 16:54:51 +03:00
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
],
|
|
|
|
|
[
|
2024-05-07 10:35:04 +03:00
|
|
|
|
'name' => 'доработка',
|
|
|
|
|
'description' => 'Новая фича, которую нужно запилить',
|
2024-05-02 16:54:51 +03:00
|
|
|
|
'created_at' => Carbon::now(),
|
|
|
|
|
],
|
|
|
|
|
]);
|
2024-04-27 15:06:00 +03:00
|
|
|
|
}
|
|
|
|
|
}
|