<?php

namespace App\Http\Requests\Teachers;

use App\Http\Requests\ApiFormRequest;

class TeacherAbsenceSubmitRequest extends ApiFormRequest
{
    public function rules(): array
    {
        return [
            'dates' => ['required', 'array', 'min:1'],
            'dates.*' => ['date'],
            'reason' => ['required', 'string'],
            'reason_type' => ['nullable', 'string'],
        ];
    }
}
