38 lines
946 B
PHP
38 lines
946 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' => 'ошибка',
|
|
'project_id' => 1,
|
|
'created_at' => Carbon::now(),
|
|
],
|
|
[
|
|
'name' => 'документация',
|
|
'project_id' => 1,
|
|
'created_at' => Carbon::now(),
|
|
],
|
|
[
|
|
'name' => 'дубликат',
|
|
'project_id' => 1,
|
|
'created_at' => Carbon::now(),
|
|
],
|
|
[
|
|
'name' => 'доработка',
|
|
'project_id' => 1,
|
|
'created_at' => Carbon::now(),
|
|
],
|
|
]);
|
|
}
|
|
}
|