*/ class TaskAssignmentFactory extends Factory { /** * Define the model's default state. * * @return array */ public function definition(): array { return [ 'cooperation_id' => Cooperation::factory(), 'start_date' => fake()->date(), 'end_date' => fake()->date(), 'task_description' => fake()->paragraph(), 'report_amount' => fake()->numberBetween(1, 10), ]; } }