22 lines
458 B
PHP
22 lines
458 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(),
|
|
'parent_id' => 0,
|
|
'status_id' => 1,
|
|
'department_id' => 1,
|
|
'created_by_id' => 1,
|
|
];
|
|
}
|
|
}
|