todo/database/factories/TaskFactory.php

23 lines
489 B
PHP
Raw Permalink Normal View History

2024-04-27 15:04:24 +03:00
<?php
namespace Database\Factories;
use Illuminate\Database\Eloquent\Factories\Factory;
class TaskFactory extends Factory
{
public function definition(): array
{
return [
2024-05-02 16:54:51 +03:00
'name' => fake()->name(),
'file' => fake()->name(),
'description' => fake()->text(),
'project_id' => 1,
2024-05-02 16:54:51 +03:00
'parent_id' => 0,
'status_id' => 1,
'department_id' => 1,
'created_by_id' => 1,
2024-04-27 15:04:24 +03:00
];
}
}