todo/database/seeders/LabelSeeder.php

34 lines
806 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 LabelSeeder extends Seeder
{
public function run(): void
{
DB::table('labels')->insert([
[
'name' => 'ошибка',
'created_at' => Carbon::now(),
],
[
'name' => 'документация',
'created_at' => Carbon::now(),
],
[
'name' => 'дубликат',
'created_at' => Carbon::now(),
],
[
'name' => 'доработка',
'created_at' => Carbon::now(),
],
]);
}
}