todo/database/factories/TaskFactory.php

23 lines
489 B
PHP

<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class TaskFactory extends Factory
{
public function definition(): array
{
return [
'name' => fake()->name(),
'file' => fake()->name(),
'description' => fake()->text(),
'project_id' => 1,
'parent_id' => 0,
'status_id' => 1,
'department_id' => 1,
'created_by_id' => 1,
];
}
}