<?php

namespace App\Http\Requests\Finance;

use App\Http\Requests\ApiFormRequest;

class ChargeListRequest extends ApiFormRequest
{
    public function authorize(): bool
    {
        return $this->user() !== null;
    }

    public function rules(): array
    {
        return [
            'parent_id' => ['required', 'integer', 'min:1'],
            'school_year' => ['nullable', 'string', 'max:20'],
        ];
    }
}
