['required', 'string', 'max:255'], 'description' => ['nullable', 'string'], 'status' => ['required', 'string', Rule::in(Task::STATUSES)], 'project_id' => ['required', 'integer', 'exists:projects,id'], 'priority' => ['integer', 'min:0', 'max:10'], 'due_at' => ['nullable', 'date'], 'estimated_hours' => ['nullable', 'integer', 'min:0'], ]; } }