todo/database/seeders/LabelSeeder.php

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