todo/database/seeders/TaskStatusSeeder.php

38 lines
952 B
PHP
Raw Permalink 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 TaskStatusSeeder extends Seeder
{
public function run(): void
{
DB::table('task_statuses')->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(),
],
]);
}
}