<?php

namespace App\Http\Requests\Finance;

use Illuminate\Foundation\Http\FormRequest;

class CarryforwardPreviewRequest extends FormRequest
{
    public function authorize(): bool { return true; }
    public function rules(): array
    {
        return [
            'from_school_year' => ['required','string','max:20'],
            'to_school_year' => ['required','string','max:20'],
            'parent_id' => ['nullable','integer'],
            'minimum_balance' => ['nullable','numeric','min:0'],
        ];
    }
}
