<?php

namespace App\Http\Requests\Subjects;

use App\Http\Requests\ApiFormRequest;

class SubjectCurriculumUpdateRequest extends ApiFormRequest
{
    public function rules(): array
    {
        return [
            'class_id' => ['required', 'integer', 'min:1'],
            'subject' => ['required', 'in:islamic,quran'],
            'chapter_name' => ['required', 'string', 'max:255'],
            'unit_number' => ['nullable', 'integer'],
            'unit_title' => ['nullable', 'string', 'max:255'],
        ];
    }
}
