fake()->sentence(3), 'description' => fake()->paragraph, 'assigned_by' => fn() => User::where(['role_id' => Role::ADMIN])->first()->id, 'important' => fake()->boolean, 'priority_id' => Priority::inRandomOrder()->first()->id, 'status_id' => Status::inRandomOrder()->first()->id, 'start_date' => fake()->optional(0.8)->passthrough(Carbon::now()), 'due_date' => fake()->optional(0.8)->passthrough(Carbon::now()->addDays(fake()->numberBetween(1, 40))), ]; } }