todo/database/seeders/LabelSeeder.php

38 lines
1.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
namespace Database\Seeders;
use Carbon\Carbon;
use Illuminate\Database\Console\Seeds\WithoutModelEvents;
use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
class LabelSeeder extends Seeder
{
public function run(): void
{
DB::table('labels')->insert([
[
'name' => 'ошибка',
'description' => 'Какая-то ошибка в коде или проблема с функциональностью',
'created_at' => Carbon::now(),
],
[
'name' => 'документация',
'description' => 'Задача которая касается документации',
'created_at' => Carbon::now(),
],
[
'name' => 'дубликат',
'description' => 'Повтор другой задачи',
'created_at' => Carbon::now(),
],
[
'name' => 'доработка',
'description' => 'Новая фича, которую нужно запилить',
'created_at' => Carbon::now(),
],
]);
}
}