<?php

namespace App\Http\Requests\Finance;

use Illuminate\Foundation\Http\FormRequest;

class CarryforwardFinalizeRequest extends FormRequest
{
    public function authorize(): bool { return true; }
    public function rules(): array
    {
        return [
            'from_school_year' => ['required_without:id','string','max:20'],
            'to_school_year' => ['required_without:id','string','max:20'],
            'parent_id' => ['nullable','integer'],
            'reason' => ['nullable','string','max:255'],
        ];
    }
}
